Zeitgeist
subscan
Runtime Modules / Swaps
Spec Version:
Events
Name
Lookup
Attributes
DistributeShareHolderRewards3800["PoolId","u64","BalanceOf"]
PoolCreate3801["CommonPoolEventParams<<T as frame_system::Config>::AccountId>","PoolOf","BalanceOf","AccountId"]
PoolClosed3802["PoolId"]
PoolCleanedUp3803["PoolId"]
PoolActive3804["PoolId"]
PoolExit3805["PoolAssetsEvent<<T as frame_system::Config>::AccountId, AssetOf, BalanceOf>"]
PoolExitWithExactAssetAmount3806["PoolAssetEvent<<T as frame_system::Config>::AccountId, AssetOf, BalanceOf>"]
PoolExitWithExactPoolAmount3807["PoolAssetEvent<<T as frame_system::Config>::AccountId, AssetOf, BalanceOf>"]
PoolJoin3808["PoolAssetsEvent<<T as frame_system::Config>::AccountId, AssetOf, BalanceOf>"]
PoolJoinWithExactAssetAmount3809["PoolAssetEvent<<T as frame_system::Config>::AccountId, AssetOf, BalanceOf>"]
PoolJoinWithExactPoolAmount380a["PoolAssetEvent<<T as frame_system::Config>::AccountId, AssetOf, BalanceOf>"]
PoolDestroyed380b["PoolId"]
PoolDestroyedInSubsidyPhase380c["PoolId","Vec<(<T as frame_system::Config>::AccountId, BalanceOf)>"]
SwapExactAmountIn380d["SwapEvent<<T as frame_system::Config>::AccountId, AssetOf, BalanceOf>"]
SwapExactAmountOut380e["SwapEvent<<T as frame_system::Config>::AccountId, AssetOf, BalanceOf>"]
Storage Functions
Name
Type
Pools{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U128"],"value":"zrml_swaps:types:pool:Pool","keys_id":6,"value_id":87}}
PoolsCachedForArbitrage{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U128"],"value":"NULL","keys_id":6,"value_id":33}}
SubsidyProviders{"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["U128","AccountId"],"value":"U128","keys_id":503,"value_id":6}}
NextPoolId{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
Constants
Name
Type
Value
ExitFeeU12840420f00000000000000000000000000
MaxAssetsU164100
MaxInRatioU12856a1aec6000000000000000000000000
MaxOutRatioU12856a1aec6000000000000000000000000
MaxSwapFeeU12800ca9a3b000000000000000000000000
MaxTotalWeightU1280000f2052a0100000000000000000000
MaxWeightU1280000f902950000000000000000000000
MinAssetsU160200
MinWeightU12800e40b54020000000000000000000000
PalletId[U8; 8]7a67652f73776170
Error Types
Name
Docs
AboveMaximumWeightThe weight of an asset in a CPMM swap pool is greather than the upper weight cap.
AssetNotBoundThe weight of an asset in a CPMM swap pool could not be found.
AssetNotInPoolThe asset in question could not be found within the pool.
BaseAssetNotFoundThe base asset of the swaps pool was None although a value was expected.
BadLimitPriceThe spot price of an asset pair was greater than the specified limit.
BelowMinimumWeightThe weight of an asset in a CPMM swap pool is lower than the upper weight cap.
InsufficientBalanceSome funds could not be transferred due to a too low balance.
InsufficientLiquidityLiquidity provided to new CPMM pool is less than the minimum allowed balance.
InvalidAmountArgumentCould not create CPMM pool since no amount was specified.
InvalidFeeArgumentCould not create CPMM pool since no fee was supplied.
InvalidPoolStatusDispatch called on pool with invalid status.
InvalidStateTransitionA function was called for a swaps pool that does not fulfill the state requirement.
InvalidWeightArgumentCould not create CPMM pool since no weights were supplied.
LimitInA transferal of funds into a swaps pool was above a threshhold specified by the sender.
InvalidSubsidyAmountSubsidy amount is too small.
LimitMissingNo limit was specified for a swap.
LimitOutA transferal of funds out of a swaps pool was below a threshhold specified by thereceiver.
MathApproximationThe custom math library yielded an invalid result (most times unexpected zero value).
MaxInRatioThe proportion of an asset added into a pool in comparison to the amountof that asset in the pool is above the threshhold specified by a constant.
MaxOutRatioThe proportion of an asset taken from a pool in comparison to the amountof that asset in the pool is above the threshhold specified by a constant.
MaxTotalWeightThe total weight of all assets within a CPMM pool is above a treshhold specifiedby a constant.
PoolDoesNotExistThe pool in question does not exist.
PoolDrainA pool balance dropped below the allowed minimum.
PoolIsNotActiveThe pool in question is inactive.
PoolMissingFeeThe CPMM pool in question does not have a fee, although it should.
PoolMissingSubsidyThe Rikiddo pool in question does not have subsidy, although it should.
PoolMissingWeightThe CPPM pool in question does not have weights, although it should.
ProvidedValuesLenMustEqualAssetsLenTwo vectors do not have the same length (usually CPMM pool assets and weights).
SwapFeeMissingNo swap fee information found for CPMM pool
SwapFeeTooHighThe swap fee is higher than the allowed maximum.
TooFewAssetsTried to create a pool that has less assets than the lower threshhold specified bya constant.
TooManyAssetsTried to create a pool that has more assets than the upper threshhold specified bya constant.
SomeIdenticalAssetsTried to create a pool with at least two identical assets.
UnsupportedTradeThe pool does not support swapping the assets in question.
WinningAssetNotFoundThe outcome asset specified as the winning asset was not found in the pool.
ZeroAmountSome amount in a transaction equals zero.
UnexpectedAn unexpected error occurred. This is the result of faulty pallet logic and should bereported to the pallet maintainers.