V2 路由
Router v2
Contract info
Contract name: pancake::router Contract address: c7efb4076dbe143cbcd98cfaaa929ecfc8f299203dfff63b95ccb6bfe19850fa::router
Admin Multi Sig: b11ccaed0056a75472539c2b0d9511c82fc6a36622bec7578216af5fe550dd0d
Types
Entry Functions
Create Pair
Create the pool pair for swap.
Params
Add Liquidity
Add liquidity to the pool.
Params
Remove Liquidity
Remove liquidity from the pool.
Params
Swap Exact Input
Swap exact amount of tokenX to tokenY.
Params
Swap Exact Output
Swap tokenX to exact amount of tokenY.
Params
Swap Exact Input Double Hop
Swap exact amount of tokenX to tokenZ using 2 pools (Pool XY and Pool YZ).
Params
Swap Exact Output Double Hop
Swap tokenX to exact amount of tokenZ using 2 pools (Pool XY and Pool YZ).
Params
Swap Exact Input Triple Hop
Swap exact amount of tokenX to tokenA using 3 pools (Pool XY, Pool YZ and Pool ZA).
Params
Swap Exact Output Triple Hop
Swap tokenX to exact amount of tokenA using 3 pools (Pool XY, Pool YZ and Pool ZA).
Swap Exact Input Quadruple Hop
Swap exact amount of tokenX to tokenB using 3 pools (Pool XY, Pool YZ, Pool ZA and Pool AB).
Swap Exact Output Quadruple Hop
Swap tokenX to exact amount of tokenB using 3 pools (Pool XY, Pool YZ, Pool ZA and Pool AB).
Public Functions
Swap Exact X to Y
Swap exact amount of tokenX to tokenY.
Input Values
Return Values
Swap X to Exact Y
Swap tokenX to the exact amount of tokenY.
Input Values
Return Values
Get Amount In
The amount required in order to the the output amount.
Input Values
Return Values
Last updated