UNPKG

@multiversx/sdk-dapp-swap

Version:

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

24 lines 994 B
import { SwapRouteType, PlatformFeeType, SwapFeeDetailsType, SwapActionTypesEnum } from 'types'; import { TokenRouteType, PriceImpactType } from 'utils'; interface UseSwapInfoProps { tolerance: string; activeRoute?: SwapRouteType; swapActionType?: SwapActionTypesEnum; } export declare const useSwapInfo: ({ tolerance, activeRoute, swapActionType }: UseSwapInfoProps) => { tokenInId: string | undefined; feeDetails: SwapFeeDetailsType | undefined; tokenOutId: string | undefined; tokenRoutes: TokenRouteType[] | undefined; priceImpact: PriceImpactType | undefined; platformFee: PlatformFeeType | undefined; exchangeRate: string | undefined; rateDirection: "normal" | "reverse"; receivedUsdValue: string | undefined; totalFeesUsdValue: string | undefined; totalTransactionsFee: string | undefined; minimumAmountReceived: string | undefined; switchTokensDirection: () => void; }; export {}; //# sourceMappingURL=useSwapInfo.d.ts.map