UNPKG

@yak-spirit/yak-swap-ui

Version:

A reusable React component for swapping with Yield Yak Router. The YY Router can be found [here](https://github.com/yieldyak/yak-aggregator).

12 lines (11 loc) 338 B
import { BigNumber } from 'bignumber.js'; import { IYakOffer } from '../types/yak.js'; export declare const fetchOnchainPrices: (payload: { fromToken: string; toToken: string; amountIn: BigNumber; }) => Promise<{ platform: string; amountOut: string | BigNumber; yakOffer?: IYakOffer | undefined; }[] | undefined>;