StableSwapRouter
Router for stateless execution of swaps against PancakeSwap StableSwap
Last updated
Was this helpful?
Router for stateless execution of swaps against PancakeSwap StableSwap
Last updated
Was this helpful?
Was this helpful?
address stableSwapFactory
address stableSwapInfo
event SetStableSwap(address factory, address info)
constructor(address _stableSwapFactory, address _stableSwapInfo) internal
function setStableSwap(address _factory, address _info) external
Set Pancake Stable Swap Factory and Info
Only callable by contract owner
function exactInputStableSwap(address[] path, uint256[] flag, uint256 amountIn, uint256 amountOutMin, address to) external payable returns (uint256 amountOut)
Parameters
path
address[]
flag
uint256[]
token amount in a stable swap pool. 2 for 2pool, 3 for 3pool
amountIn
uint256
amountOutMin
uint256
to
address
function exactOutputStableSwap(address[] path, uint256[] flag, uint256 amountOut, uint256 amountInMax, address to) external payable returns (uint256 amountIn)
Parameters
path
address[]
flag
uint256[]
token amount in a stable swap pool. 2 for 2pool, 3 for 3pool
amountOut
uint256
amountInMax
uint256
to
address