Stable Pool
This pool type contain stable tokens
Contract Interface
1. Notations & Structs
1.1. PoolResultType
pub type PoolResultType<BigUint> = ManagedVec<BigUint, EsdtTokenPayment<BigUint>>;1.2. TokenAttributes
pub struct TokenAttributes<M: ManagedTypeApi> {
pub reserve: BigUint<M>,
pub rate: BigUint<M>,
}1.3. AddLiquidityAttributes
pub struct AddLiquidityAttributes<M: ManagedTypeApi> {
pub token: TokenIdentifier<M>,
pub attribute: TokenAttributes<M>,
pub amount_added: BigUint<M>,
pub total_fee: BigUint<M>,
pub admin_fee: BigUint<M>,
}1.4. AddLiquidityEvent
1.5. RemoveLiquidityAttributes
1.6. RemoveLiquidityEvent
1.7. RemoveLiquidityOneCoinEvent
1.8. ExchangeAttributes
1.9. ExchangeEvent
2. Write functions
2.1. Add liquidity
2.2. Remove liquidity
2.3. Exchange
3. Read functions
3.1. Estimate the exchange output
3.2. Estimate add liquidity
3.3. Estimate remove liquidity
3.4. Get AMP factor
3.5. Get pool state
3.6. Get LP token identifier
3.7. Get LP token supply
3.8. Get pool tokens
3.9. Get token balances
3.10. Get swap fee
3.11. Get admin fee
4. Events
4.1. Add liquidity
4.2. Remove liquidity
4.3. Remove liquidity one coin
4.4. Exchange
Last updated