Swap
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::swap
Contract Address: [tba]
Admin Multi Sig: [tba]
Name | Type | Description |
---|---|---|
The liquidity token corresponds to each pool XY.
Metadata related to the token pair and liquidity pool.
Reserve balances and metadata related to liquidity reserves.
Register the LP token to the account.
Check if the pool XY is created or not.
Check the LP balance of a user.
Retrieve the total amount of LP tokens in the pool.
Retrieve the reserves of the token pair XY.
Retrieve the token balances in the pool XY.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
X
type address
The coin type address of token X in the pair.
Y
type address
The coin type address of token Y in the pair.
creator
address
The creator address of the pool.
k_last
u128
The last recorded reserve product (reserve_x * reserve_y).
balance_x
coin::Coin
The total amount of token X in the pool.
balance_y
coin::Coin
The total amount of token Y in the pool.
mint_cap
coin::MintCapability
Capability to mint LP tokens.
burn_cap
coin::BurnCapability
Capability to burn LP tokens.
treasury_fee
u128
The fee collected by the treasury.
reserve_x
u64
The total amount of token X in the pool.
reserve_y
u64
The total amount of token Y in the pool.
block_timestamp_last
u64
The last time the reserves were updated.