StableSwap 路由
Router for stateless execution of swaps against PancakeSwap StableSwap
StableSwap 路由(StableSwapRouter)。
Solidity API
StableSwapRouter
stableSwapFactory
stableSwapInfo
SetStableSwap
constructor
setStableSwap
Set Pancake Stable Swap Factory and Info
Only callable by contract owner
exactInputStableSwap
Parameters
Name | Type | Description |
---|---|---|
path | address[] | |
flag | uint256[] | token amount in a stable swap pool. 2 for 2pool, 3 for 3pool |
amountIn | uint256 | |
amountOutMin | uint256 | |
to | address |
exactOutputStableSwap
Parameters
Name | Type | Description |
---|---|---|
path | address[] | |
flag | uint256[] | token amount in a stable swap pool. 2 for 2pool, 3 for 3pool |
amountOut | uint256 | |
amountInMax | uint256 | |
to | address |
Last updated