hydration
subscan
Runtime Modules / Omnipool
Spec Version:
Events
Name
Lookup
Attributes
TokenAdded3b00["AssetId","Balance","Price"]
LiquidityAdded3b01["AccountId","AssetId","Balance","PositionItemId"]
LiquidityRemoved3b02["AccountId","PositionItemId","AssetId","Balance"]
SellExecuted3b03["AccountId","AssetId","AssetId","Balance","Balance"]
BuyExecuted3b04["AccountId","AssetId","AssetId","Balance","Balance"]
PositionCreated3b05["PositionItemId","AccountId","AssetId","Balance","Balance","Price"]
PositionDestroyed3b06["PositionItemId","AccountId"]
PositionUpdated3b07["PositionItemId","AccountId","AssetId","Balance","Balance","Price"]
TradableStateUpdated3b08["AssetId","Tradability"]
AssetRefunded3b09["AssetId","Balance","AccountId"]
AssetWeightCapUpdated3b0a["AssetId","Permill"]
Storage Functions
Name
Type
Assets{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"pallet_omnipool:types:AssetState","keys_id":4,"value_id":393}}
HubAssetImbalance{"origin":"PlainType","plain_type":"pallet_omnipool:types:SimpleImbalance","PlainTypeValue":394}
HubAssetTradability{"origin":"PlainType","plain_type":"U8","PlainTypeValue":85}
Positions{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U128"],"value":"pallet_omnipool:types:Position","keys_id":6,"value_id":395}}
NextPositionId{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
Constants
Name
Type
Value
HdxAssetIdU3200000000
HubAssetIdU3201000000
StableCoinAssetIdU3202000000
ProtocolFeeU32f4010000
AssetFeeU32c4090000
TVLCapU128000078376221c3ad0e2f000000000000
MinimumTradingLimitU12840420f00000000000000000000000000
MinimumPoolLiquidityU12840420f00000000000000000000000000
MaxInRatioU12803000000000000000000000000000000
MaxOutRatioU12803000000000000000000000000000000
NFTCollectionIdU12839050000000000000000000000000000
Error Types
Name
Docs
InsufficientBalanceBalance too low
AssetAlreadyAddedAsset is already in omnipool
AssetNotFoundAsset is not in omnipool
NoStableAssetInPoolNo stable asset in the pool
NoNativeAssetInPoolNo native asset in the pool yet.
MissingBalanceAdding token as protocol ( root ), token balance has not been updated prior to add token.
InvalidInitialAssetPriceInvalid initial asset price. Price must be non-zero.
BuyLimitNotReachedMinimum limit has not been reached during trade.
SellLimitExceededMaximum limit has been exceeded during trade.
PositionNotFoundPosition has not been found.
InsufficientSharesInsufficient shares in position
NotAllowedAsset is not allowed to be bought or sold
ForbiddenSigned account is not owner of position instance.
AssetWeightCapExceededAsset weight cap has been exceeded.
TVLCapExceededTVL cap has been exceeded
AssetNotRegisteredAsset is not registered in asset registry
InsufficientLiquidityProvided liquidity is below minimum allowed limit
InsufficientTradingAmountTraded amount is below minimum allowed limit
SameAssetTradeNotAllowedSell or buy with same asset ids is not allowed.
HubAssetUpdateErrorLRNA update after trade results in positive value.
PositiveImbalanceImbalance results in positive value.
InvalidSharesAmountAmount of shares provided cannot be 0.
InvalidHubAssetTradableStateHJb Asset's trabable is only allowed to be SELL or BUY.
AssetRefundNotAllowedAsset is not allowed to be refunded.
MaxOutRatioExceededMax fraction of asset reserve to buy has been exceeded.
MaxInRatioExceededMax fraction of asset reserve to sell has been exceeded.