subscan
Runtime Modules / Stableswap
Spec Version:
Events
Name
Lookup
Attributes
PoolCreated4600["AssetId","Vec<AssetId>","NonZeroU16","Permill"]
FeeUpdated4601["AssetId","Permill"]
LiquidityAdded4602["AssetId","AccountId","Balance","Vec<AssetAmount<AssetId>>"]
LiquidityRemoved4603["AssetId","AccountId","Balance","Vec<AssetAmount<AssetId>>","Balance"]
SellExecuted4604["AccountId","AssetId","AssetId","AssetId","Balance","Balance","Balance"]
BuyExecuted4605["AccountId","AssetId","AssetId","AssetId","Balance","Balance","Balance"]
TradableStateUpdated4606["AssetId","AssetId","Tradability"]
AmplificationChanging4607["AssetId","NonZeroU16","NonZeroU16","BlockNumberFor","BlockNumberFor"]
Storage Functions
Name
Type
Pools{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"pallet_stableswap:types:PoolInfo","keys_id":4,"value_id":534}}
AssetTradability{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","U32"],"value":"U8","keys_id":95,"value_id":105}}
Constants
Name
Type
Value
MinPoolLiquidityU12840420f00000000000000000000000000
MinTradingLimitU128e8030000000000000000000000000000
AmplificationRangeRangeInclusive02001027
Error Types
Name
Docs
IncorrectAssetsCreating a pool with same assets or less than 2 assets is not allowed.
MaxAssetsExceededMaximum number of assets has been exceeded.
PoolNotFoundA pool with given assets does not exist.
PoolExistsA pool with given assets already exists.
AssetNotInPoolAsset is not in the pool.
ShareAssetNotRegisteredShare asset is not registered in Registry.
ShareAssetInPoolAssetsShare asset is amount assets when creating a pool.
AssetNotRegisteredOne or more assets are not registered in AssetRegistry
InvalidAssetAmountInvalid asset amount provided. Amount must be greater than zero.
InsufficientBalanceBalance of an asset is not sufficient to perform a trade.
InsufficientSharesBalance of a share asset is not sufficient to withdraw liquidity.
InsufficientLiquidityLiquidity has not reached the required minimum.
InsufficientLiquidityRemainingInsufficient liquidity left in the pool after withdrawal.
InsufficientTradingAmountAmount is less than the minimum trading amount configured.
BuyLimitNotReachedMinimum limit has not been reached during trade.
SellLimitExceededMaximum limit has been exceeded during trade.
InvalidInitialLiquidityInitial liquidity of asset must be > 0.
InvalidAmplificationAmplification is outside configured range.
InsufficientShareBalanceRemaining balance of share asset is below asset's existential deposit.
NotAllowedNot allowed to perform an operation on given asset.
PastBlockFuture block number is in the past.
SameAmplificationNew amplification is equal to the previous value.
SlippageLimitSlippage protection.
UnknownDecimalsFailed to retrieve asset decimals.