@multiversx/sdk-dapp-swap
Version:
A library to hold the main logic for swapping between tokens on the MultiversX blockchain
12 lines • 434 B
TypeScript
import { SwapRouteType } from 'types';
export declare const useRateCalculator: ({ activeRoute }: {
activeRoute?: SwapRouteType | undefined;
}) => {
rateDirection: "normal" | "reverse";
tokenInId: string | undefined;
tokenInIdPriceUsd: string | undefined;
tokenOutId: string | undefined;
exchangeRate: string | undefined;
switchTokensDirection: () => void;
};
//# sourceMappingURL=useRateCalculator.d.ts.map