Mangata
subscan
Runtime Modules / Xyk
Spec Version:
Events
Name
Lookup
Attributes
PoolCreated0d00["AccountId","CurrencyIdOf","BalanceOf","CurrencyIdOf","BalanceOf"]
AssetsSwapped0d01["AccountId","Vec<CurrencyIdOf>","BalanceOf","BalanceOf"]
SellAssetFailedDueToSlippage0d02["AccountId","CurrencyIdOf","BalanceOf","CurrencyIdOf","BalanceOf","BalanceOf"]
BuyAssetFailedDueToSlippage0d03["AccountId","CurrencyIdOf","BalanceOf","CurrencyIdOf","BalanceOf","BalanceOf"]
LiquidityMinted0d04["AccountId","CurrencyIdOf","BalanceOf","CurrencyIdOf","BalanceOf","CurrencyIdOf","BalanceOf"]
LiquidityBurned0d05["AccountId","CurrencyIdOf","BalanceOf","CurrencyIdOf","BalanceOf","CurrencyIdOf","BalanceOf"]
PoolPromotionUpdated0d06["CurrencyIdOf","Option<u8>"]
LiquidityActivated0d07["AccountId","CurrencyIdOf","BalanceOf"]
LiquidityDeactivated0d08["AccountId","CurrencyIdOf","BalanceOf"]
RewardsClaimed0d09["AccountId","CurrencyIdOf","BalanceOf"]
MultiSwapAssetFailedOnAtomicSwap0d0a["AccountId","Vec<CurrencyIdOf>","BalanceOf","ModuleError"]
Storage Functions
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}}
Constants
Name
Type
Value
PoolFeePercentageU12814000000000000000000000000000000
TreasuryFeePercentageU12805000000000000000000000000000000
BuyAndBurnFeePercentageU12805000000000000000000000000000000
Error Types
Name
Docs
PoolAlreadyExistsPool already Exists
NotEnoughAssetsNot enought assets
NoSuchPoolNo such pool exists
NoSuchLiquidityAssetNo such liquidity asset exists
NotEnoughReserveNot enought reserve
ZeroAmountZero amount is not supported
InsufficientInputAmountInsufficient input amount
InsufficientOutputAmountInsufficient output amount
SameAssetAsset ids cannot be the same
AssetAlreadyExistsAsset already exists
AssetDoesNotExistsAsset does not exists
DivisionByZeroDivision by zero
UnexpectedFailureUnexpected failure
NotMangataLiquidityAssetUnexpected failure
SecondAssetAmountExceededExpectationsSecond asset amount exceeded expectations
MathOverflowMath overflow
LiquidityTokenCreationFailedLiquidity token creation failed
NotEnoughRewardsEarnedNot enough rewards earned
NotAPromotedPoolNot a promoted pool
PastTimeCalculationPast time calculation
PoolAlreadyPromotedPool already promoted
SoldAmountTooLowSold Amount too low
FunctionNotAvailableForThisTokenAsset id is blacklisted
DisallowedPoolPool considting of passed tokens id is blacklisted
LiquidityCheckpointMathError
CalculateRewardsMathError
CalculateCumulativeWorkMaxRatioMathError
CalculateRewardsAllMathError
NoRights
MultiswapShouldBeAtleastTwoHops
MultiBuyAssetCantHaveSamePoolAtomicSwaps
MultiSwapCantHaveSameTokenConsequetively
TradingBlockedByMaintenanceModeTrading blocked by maintenance mode
PoolIsEmpty