UNPKG

hermes-swap-router-sdk

Version:

An sdk for routing swaps using Uniswap v2, Uniswap v3 and Balancer Stable Pools.

13 lines (12 loc) 807 B
import { ComposableStablePool, Trade as V3Trade, TradeType } from 'hermes-v2-sdk'; import { Currency } from 'maia-core-sdk'; import { SwapOptions } from '../../swapRouter'; /** * @notice Generates the calldata for a Swap with a V3 Route. * @param _trade The V3Trade to encode. * @param _options SwapOptions to use for the trade. * @param _routerMustCustody Flag for whether funds should be sent to the router * @param _performAggregatedSlippageCheck Flag for whether we want to perform an aggregated slippage check * @returns A string array of calldatas for the trade. */ export declare function encodeStableSwap(_trade: V3Trade<ComposableStablePool, Currency, Currency, TradeType>, _options: SwapOptions, _routerMustCustody: boolean, _performAggregatedSlippageCheck: boolean): string[];