hydration
subscan
Runtime Modules / OTC
Spec Version:
Call Functions
Name
Lookup
Parameters
place_order40005
partial_fill_order40012
fill_order40021
cancel_order40031
Events
Name
Lookup
Attributes
Cancelled4000["OrderId"]
Filled4001["OrderId","AccountId","Balance","Balance","Balance"]
PartiallyFilled4002["OrderId","AccountId","Balance","Balance","Balance"]
Placed4003["OrderId","AssetId","AssetId","Balance","Balance","bool"]
Storage Functions
Name
Type
NextOrderId{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
Orders{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"pallet_otc:Order","keys_id":4,"value_id":649}}
Constants
Name
Type
Value
ExistentialDepositMultiplierU805
FeeU32e8030000
FeeReceiverAccountId6d6f646c70792f74727372790000000000000000000000000000000000000000
Error Types
Name
Docs
AssetNotRegisteredAsset does not exist in registry
OrderNotFoundOrder cannot be found
OrderIdOutOfBoundSize of order ID exceeds the bound
OrderNotPartiallyFillableCannot partially fill an order which is not partially fillable
OrderAmountTooSmallOrder amount_in and amount_out must at all times be greater than the existential depositfor the asset multiplied by the ExistentialDepositMultiplier.A fill order may not leave behind amounts smaller than this.
MathErrorError with math calculations
ForbiddenThe caller does not have permission to complete the action
InsufficientReservedAmountReserved amount not sufficient.