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
Public Functions
Creates a new liquidity pair for tokens X and Y. Reverts if the pair already exists.
public entry fun create_pair<X, Y>(sender: &signer)
Input Values
Type
Description
Register Fee On Transfer in Pair
Adds fee-on-transfer functionality to a token pair (only callable by token owners).
public entry fun register_fee_on_transfer_in_a_pair<CoinType, X, Y>(sender: &signer)
Input Values
Type
Description
Stake Tokens in Pool
Deposit tokens into the staking pool for a liquidity pair.
Input Values
Type
Description
The amount of tokens to stake.
Unstake Tokens from Pool
Withdraw tokens from the staking pool for a liquidity pair.
Input Values
Type
Description
The amount of tokens to withdraw.
Claim Rewards from Pool
Claim staking rewards from the rewards pool.
Input Values
Type
Description
Add liquidity to a pair or create the pair if it doesn't exist.
Input Values
Type
Description
The amount of token X desired.
The amount of token Y desired.
The minimum amount of token X to add.
The minimum amount of token Y to add.
Remove Liquidity
Remove liquidity from a pair.
Input Values
Type
Description
The amount of liquidity to remove.
The minimum amount of token X to receive.
The minimum amount of token Y to receive.
Swap an exact input amount of token X for the maximum possible amount of token Y.
Input Values
Type
Description
The exact amount of token X to swap.
The minimum amount of token Y to receive.
Swap Exact Output
Swap the minimum possible amount of token X to receive an exact output amount of token Y.
Input Values
Type
Description
The exact amount of token Y to receive.
The maximum amount of token X to swap.
Swap token X for token Y through an intermediate token Z.
Input Values
Type
Description
The exact amount of token X to swap.
The minimum amount of token Y to receive.
Register the LP token for a pair to the sender's account.
Input Values
Type
Description
Update Fee Tier
Update the fee tier for a liquidity pair.
Input Values
Type
Description