Swap
Contract Info
Types
Name
Type
Description
Resources
LPToken
struct LPToken<phantom X, phantom Y> has key {}TokenPairMetadata
struct TokenPairMetadata<phantom X, phantom Y> has key {
creator: address,
fee_on_transfer_x: Option<FeeOnTransferInfo<X>>,
fee_on_transfer_y: Option<FeeOnTransferInfo<Y>>,
k_last: u128,
liquidity_fee: u128,
rewards_fee: u128,
team_fee: u128,
treasury_fee: u128,
balance_x: coin::Coin<X>,
balance_y: coin::Coin<Y>,
mint_cap: coin::MintCapability<LPToken<X, Y>>,
burn_cap: coin::BurnCapability<LPToken<X, Y>>,
freeze_cap: coin::FreezeCapability<LPToken<X, Y>>,
}Name
Type
Description
TokenPairReserve
Name
Type
Description
Public Functions
Register LP
Is Pair Created
LP Balance
Total LP Supply
Token Reserves
Token Balance
Last updated