UNPKG

@multiversx/sdk-dapp-swap

Version:

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

25 lines 1 kB
import { SelectOptionType, SwapRouteType, SwapFeeDetailsType, SwapActionTypesEnum } from 'types'; interface UseSwapInfoProps { tolerance: string; firstToken?: SelectOptionType; firstAmount?: string; secondToken?: SelectOptionType; secondAmount?: string; activeRoute?: SwapRouteType; swapActionType?: SwapActionTypesEnum; } export declare const useSwapInfo: ({ tolerance, activeRoute, firstToken, firstAmount, secondToken, secondAmount, swapActionType }: UseSwapInfoProps) => { exchangeRate: string | undefined; feeDetails: SwapFeeDetailsType | undefined; feeAmounts: string[] | undefined; pricesImpact: string[] | undefined; feePercentages: string[] | undefined; tokenInId: string | undefined; tokenOutId: string | undefined; switchTokensDirection: () => void; totalTransactionsFee: string | undefined; minimumAmountReceived: string | undefined; exchangeRateUsdValue: string; }; export {}; //# sourceMappingURL=useSwapInfo.d.ts.map