StableSwap 路由

Router for stateless execution of swaps against PancakeSwap StableSwap

StableSwap 路由(StableSwapRouter)。

Solidity API

StableSwapRouter

stableSwapFactory

address stableSwapFactory

stableSwapInfo

address stableSwapInfo

SetStableSwap

event SetStableSwap(address factory, address info)

constructor

constructor(address _stableSwapFactory, address _stableSwapInfo) internal

setStableSwap

function setStableSwap(address _factory, address _info) external

Set Pancake Stable Swap Factory and Info

Only callable by contract owner

exactInputStableSwap

function exactInputStableSwap(address[] path, uint256[] flag, uint256 amountIn, uint256 amountOutMin, address to) external payable returns (uint256 amountOut)

Parameters

exactOutputStableSwap

function exactOutputStableSwap(address[] path, uint256[] flag, uint256 amountOut, uint256 amountInMax, address to) external payable returns (uint256 amountIn)

Parameters

最后更新于