Name | Lookup | Parameters | |
|---|---|---|---|
| place_order | 4000 | 5 | |
| partial_fill_order | 4001 | 2 | |
| fill_order | 4002 | 1 | |
| cancel_order | 4003 | 1 |
Name | Lookup | Attributes | |
|---|---|---|---|
| Cancelled | 4000 | ["OrderId"] | |
| Filled | 4001 | ["OrderId","AccountId","Balance","Balance","Balance"] | |
| PartiallyFilled | 4002 | ["OrderId","AccountId","Balance","Balance","Balance"] | |
| Placed | 4003 | ["OrderId","AssetId","AssetId","Balance","Balance","bool"] |
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}} |
Name | Type | Value | |
|---|---|---|---|
| ExistentialDepositMultiplier | U8 | 05 | |
| Fee | U32 | e8030000 | |
| FeeReceiver | AccountId | 6d6f646c70792f74727372790000000000000000000000000000000000000000 |
Name | Docs |
|---|---|
| AssetNotRegistered | Asset does not exist in registry |
| OrderNotFound | Order cannot be found |
| OrderIdOutOfBound | Size of order ID exceeds the bound |
| OrderNotPartiallyFillable | Cannot partially fill an order which is not partially fillable |
| OrderAmountTooSmall | Order 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. |
| MathError | Error with math calculations |
| Forbidden | The caller does not have permission to complete the action |
| InsufficientReservedAmount | Reserved amount not sufficient. |