UNPKG

@multiversx/sdk-dapp-swap

Version:

A library to hold the main logic for swapping between tokens on the MultiversX blockchain

24 lines 1.07 kB
import { SwapRouteType, SelectOptionType } from 'types'; import { GetSwapRouteType } from './useSwapRoute'; export declare const useSwapFormHandlers: ({ getSwapRoute, tolerancePercentage }: { getSwapRoute: ({}: GetSwapRouteType) => void; tolerancePercentage?: number | undefined; }) => { firstToken: SelectOptionType | undefined; firstAmount: string; secondToken: SelectOptionType | undefined; secondAmount: string; activeRoute: SwapRouteType | undefined; inputAmountsUsdValue: { firstAmountUsdValue: string | undefined; secondAmountUsdValue: string | undefined; }; handleOnChangeFirstAmount: (amount: string) => void; handleOnChangeSecondAmount: (amount: string) => void; handleOnChangeFirstSelect: (option?: SelectOptionType) => void; handleOnChangeSecondSelect: (option?: SelectOptionType) => void; handleOnChangeSwapRoute: (swapRoute?: SwapRouteType) => void; handleOnFirstMaxBtnChange: () => void; handleSwitchTokens: () => void; }; //# sourceMappingURL=useSwapFormHandlers.d.ts.map