subscan
Runtime Modules / Exchange
Spec Version:
Call Functions
Name
Lookup
Parameters
sell67005
buy67015
Events
Name
Lookup
Attributes
IntentionRegistered6700["AccountId","AssetId","AssetId","Balance","IntentionType","IntentionId"]
IntentionResolvedAMMTrade6701["AccountId","IntentionType","IntentionId","Balance","Balance","AccountId"]
IntentionResolvedDirectTrade6702["AccountId","AccountId","IntentionId","IntentionId","Balance","Balance"]
IntentionResolvedDirectTradeFees6703["AccountId","IntentionId","AccountId","AssetId","Balance"]
InsufficientAssetBalanceEvent6704["AccountId","AssetId","IntentionType","IntentionId","dispatch::DispatchError"]
IntentionResolveErrorEvent6705["AccountId","AssetPair","IntentionType","IntentionId","dispatch::DispatchError"]
Storage Functions
Name
Type
ExchangeAssetsIntentionCount{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32","U32"],"value":"U32","keys_id":33,"value_id":4}}
ExchangeAssetsIntentions{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32","U32"],"value":"Vec<primitives:ExchangeIntention>","keys_id":33,"value_id":453}}
Constants
Name
Type
Value
max_out_ratioU12803000000000000000000000000000000
Error Types
Name
Docs
TokenPoolNotFoundToken pool does not exist.
InsufficientAssetBalanceInsufficient asset balance.
TradeAmountExceededLimitGiven trading limit has been exceeded (buy).
TradeAmountNotReachedLimitGiven trading limit has not been reached (sell).
ZeroSpotPriceOverflow
MinimumTradeLimitNotReachedTrade amount is too low.
IntentionCountOverflowOverflow