orders
Module0x93f6…7dfd
- Move path
- 0x7fd8…1fec::orders
- Functions
- 90 public, 0 entry
- Structs
- 4
- Friend modules
- market
orders
Functions9
No function matches.
Structs4
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
- CreateDecreasePositionOrderEventcopydrop
take_profit bool decrease_amount u64 limited_index_price decimal::Decimal collateral_price_threshold decimal::Decimal fee_amount u64 scard_id Option<ID> scard_rebate_rate Option<rate::Rate> - CreateOpenPositionOrderEventcopydrop
open_amount u64 reserve_amount u64 limited_index_price decimal::Decimal collateral_price_threshold decimal::Decimal position_config position::PositionConfig collateral_amount u64 fee_amount u64 scard_id Option<ID> scard_rebate_rate Option<rate::Rate> executed bool created_at u64 take_profit bool decrease_amount u64 limited_index_price decimal::Decimal collateral_price_threshold decimal::Decimal fee Balance<T0> scard_id Option<ID> scard_rebate_rate Option<rate::Rate> referrer address executed bool created_at u64 open_amount u64 reserve_amount u64 limited_index_price decimal::Decimal collateral_price_threshold decimal::Decimal position_config position::PositionConfig collateral Balance<T0> fee Balance<T1> scard_id Option<ID> scard_rebate_rate Option<rate::Rate> referrer address
Constants4
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Index | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | 301 | u64 | Abort code | execute_open_position_order_v2execute_open_market_orderexecute_decrease_position_order_v2execute_decrease_market_orderand 2 more |
| 1 | 302 | u64 | Abort code | execute_open_position_order_v2execute_decrease_position_order_v2execute_decrease_position_order_v2_with_loss_protection |
| 2 | 303 | u64 | Abort code | new_open_position_ordernew_open_market_order |
| 3 | 304 | u64 | Abort code | execute_open_market_orderexecute_decrease_market_orderexecute_decrease_market_order_with_loss_protection |