Router
Last updated
Last updated
Movemement testnet is unstable by the time of writing and using the contracts below are for testing and development purposes only
Contract Name: yuzu::router
Contract Address: [tba]
Admin Multi Sig: [tba]
Creates a new liquidity pair for tokens X and Y. Reverts if the pair already exists.
Input Values | Type | Description |
---|---|---|
Adds fee-on-transfer functionality to a token pair (only callable by token owners).
Input Values | Type | Description |
---|---|---|
Deposit tokens into the staking pool for a liquidity pair.
Withdraw tokens from the staking pool for a liquidity pair.
Claim staking rewards from the rewards pool.
Add liquidity to a pair or create the pair if it doesn't exist.
Remove liquidity from a pair.
Swap an exact input amount of token X for the maximum possible amount of token Y.
Swap the minimum possible amount of token X to receive an exact output amount of token Y.
Swap token X for token Y through an intermediate token Z.
Register the LP token for a pair to the sender's account.
Update the fee tier for a liquidity pair.
Input Values | Type | Description |
---|---|---|
Input Values | Type | Description |
---|---|---|
Input Values | Type | Description |
---|---|---|
Input Values | Type | Description |
---|---|---|
Input Values | Type | Description |
---|---|---|
Input Values | Type | Description |
---|---|---|
Input Values | Type | Description |
---|---|---|
Input Values | Type | Description |
---|---|---|
Input Values | Type | Description |
---|---|---|
Input Values | Type | Description |
---|---|---|
sender
signer
The sender's signer.
sender
signer
The sender's signer.
sender
signer
The sender's signer.
amount
u64
The amount of tokens to stake.
sender
signer
The sender's signer.
amount
u64
The amount of tokens to withdraw.
sender
signer
The sender's signer.
sender
signer
The sender's signer.
amount_x_desired
u64
The amount of token X desired.
amount_y_desired
u64
The amount of token Y desired.
amount_x_min
u64
The minimum amount of token X to add.
amount_y_min
u64
The minimum amount of token Y to add.
sender
signer
The sender's signer.
liquidity
u64
The amount of liquidity to remove.
amount_x_min
u64
The minimum amount of token X to receive.
amount_y_min
u64
The minimum amount of token Y to receive.
sender
signer
The sender's signer.
x_in
u64
The exact amount of token X to swap.
y_min_out
u64
The minimum amount of token Y to receive.
sender
signer
The sender's signer.
y_out
u64
The exact amount of token Y to receive.
x_max_in
u64
The maximum amount of token X to swap.
sender
signer
The sender's signer.
x_in
u64
The exact amount of token X to swap.
y_min_out
u64
The minimum amount of token Y to receive.
sender
signer
The sender's signer.
signer_ref
signer
The sender's signer.