Name | Lookup | Parameters | |
---|---|---|---|
create_pool | 0d00 | 4 | |
sell_asset | 0d01 | 4 | |
multiswap_sell_asset | 0d02 | 3 | |
buy_asset | 0d03 | 4 | |
multiswap_buy_asset | 0d04 | 3 | |
mint_liquidity_using_vesting_native_tokens_by_vesting_index | 0d05 | 4 | |
mint_liquidity_using_vesting_native_tokens | 0d06 | 3 | |
mint_liquidity | 0d07 | 4 | |
compound_rewards | 0d08 | 2 | |
provide_liquidity_with_conversion | 0d09 | 3 | |
burn_liquidity | 0d0a | 3 |
Name | Lookup | Attributes | |
---|---|---|---|
PoolCreated | 0d00 | ["AccountId","CurrencyIdOf","BalanceOf","CurrencyIdOf","BalanceOf"] | |
AssetsSwapped | 0d01 | ["AccountId","Vec<CurrencyIdOf>","BalanceOf","BalanceOf"] | |
SellAssetFailedDueToSlippage | 0d02 | ["AccountId","CurrencyIdOf","BalanceOf","CurrencyIdOf","BalanceOf","BalanceOf"] | |
BuyAssetFailedDueToSlippage | 0d03 | ["AccountId","CurrencyIdOf","BalanceOf","CurrencyIdOf","BalanceOf","BalanceOf"] | |
LiquidityMinted | 0d04 | ["AccountId","CurrencyIdOf","BalanceOf","CurrencyIdOf","BalanceOf","CurrencyIdOf","BalanceOf"] | |
LiquidityBurned | 0d05 | ["AccountId","CurrencyIdOf","BalanceOf","CurrencyIdOf","BalanceOf","CurrencyIdOf","BalanceOf"] | |
PoolPromotionUpdated | 0d06 | ["CurrencyIdOf","Option<u8>"] | |
LiquidityActivated | 0d07 | ["AccountId","CurrencyIdOf","BalanceOf"] | |
LiquidityDeactivated | 0d08 | ["AccountId","CurrencyIdOf","BalanceOf"] | |
RewardsClaimed | 0d09 | ["AccountId","CurrencyIdOf","BalanceOf"] | |
MultiSwapAssetFailedOnAtomicSwap | 0d0a | ["AccountId","Vec<CurrencyIdOf>","BalanceOf","ModuleError"] |
Name | Type | |
---|---|---|
Pools | {"origin":"Map","n_map_type":{"hashers":["Blake2_256"],"key_vec":["U32","U32"],"value":"Tuple:U128U128","keys_id":150,"value_id":251}} | |
LiquidityAssets | {"origin":"Map","n_map_type":{"hashers":["Blake2_256"],"key_vec":["U32","U32"],"value":"option<U32>","keys_id":150,"value_id":13}} | |
LiquidityPools | {"origin":"Map","n_map_type":{"hashers":["Blake2_256"],"key_vec":["U32"],"value":"option<Tuple:U32U32>","keys_id":4,"value_id":367}} |
Name | Type | Value | |
---|---|---|---|
PoolFeePercentage | U128 | 14000000000000000000000000000000 | |
TreasuryFeePercentage | U128 | 05000000000000000000000000000000 | |
BuyAndBurnFeePercentage | U128 | 05000000000000000000000000000000 |
Name | Docs |
---|---|
PoolAlreadyExists | Pool already Exists |
NotEnoughAssets | Not enought assets |
NoSuchPool | No such pool exists |
NoSuchLiquidityAsset | No such liquidity asset exists |
NotEnoughReserve | Not enought reserve |
ZeroAmount | Zero amount is not supported |
InsufficientInputAmount | Insufficient input amount |
InsufficientOutputAmount | Insufficient output amount |
SameAsset | Asset ids cannot be the same |
AssetAlreadyExists | Asset already exists |
AssetDoesNotExists | Asset does not exists |
DivisionByZero | Division by zero |
UnexpectedFailure | Unexpected failure |
NotMangataLiquidityAsset | Unexpected failure |
SecondAssetAmountExceededExpectations | Second asset amount exceeded expectations |
MathOverflow | Math overflow |
LiquidityTokenCreationFailed | Liquidity token creation failed |
NotEnoughRewardsEarned | Not enough rewards earned |
NotAPromotedPool | Not a promoted pool |
PastTimeCalculation | Past time calculation |
PoolAlreadyPromoted | Pool already promoted |
SoldAmountTooLow | Sold Amount too low |
FunctionNotAvailableForThisToken | Asset id is blacklisted |
DisallowedPool | Pool considting of passed tokens id is blacklisted |
LiquidityCheckpointMathError | |
CalculateRewardsMathError | |
CalculateCumulativeWorkMaxRatioMathError | |
CalculateRewardsAllMathError | |
NoRights | |
MultiswapShouldBeAtleastTwoHops | |
MultiBuyAssetCantHaveSamePoolAtomicSwaps | |
MultiSwapCantHaveSameTokenConsequetively | |
TradingBlockedByMaintenanceMode | Trading blocked by maintenance mode |
PoolIsEmpty |