Package 0x93f6…7dfd
position
- Move path
- 0x7fd8…1fec::position
- Functions
- 3922 public, 0 entry
- Structs
- 6
position
Functions39
Structs6
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
closed bool has_profit bool settled_amount u64 decreased_reserved_amount u64 decrease_size decimal::Decimal reserving_fee_amount decimal::Decimal decrease_fee_value decimal::Decimal reserving_fee_value decimal::Decimal funding_fee_value sdecimal::SDecimal to_vault Balance<T0> to_trader Balance<T0> closed bool has_profit bool settled_amount u64 decreased_reserved_amount u64 decrease_size decimal::Decimal reserving_fee_amount decimal::Decimal decrease_fee_value decimal::Decimal reserving_fee_value decimal::Decimal funding_fee_value sdecimal::SDecimal instant_exit_fee_value decimal::Decimal instant_exit_fee_tier u8 to_vault Balance<T0> to_trader Balance<T0> position Position<T0> open_fee Balance<T0> open_fee_amount decimal::Decimal - Position<phantom T0>store
closed bool config PositionConfig open_timestamp u64 position_amount u64 position_size decimal::Decimal reserving_fee_amount decimal::Decimal funding_fee_value sdecimal::SDecimal last_reserving_rate rate::Rate last_funding_rate srate::SRate reserved Balance<T0> collateral Balance<T0> - PositionConfigcopydropstore
max_leverage u64 min_holding_duration u64 max_reserved_multiplier u64 min_collateral_value decimal::Decimal min_order_fee_value decimal::Decimal open_fee_bps rate::Rate decrease_fee_bps rate::Rate liquidation_threshold rate::Rate liquidation_bonus rate::Rate - PositionInstantExitFeeConfigcopydropstore
instant_exit_tier_1_duration_threshold u64 instant_exit_tier_1_fee_bps rate::Rate instant_exit_tier_1_fee_enabled bool instant_exit_tier_2_duration_threshold u64 instant_exit_tier_2_fee_bps rate::Rate instant_exit_tier_2_fee_enabled bool instant_exit_tier_3_duration_threshold u64 instant_exit_tier_3_fee_bps rate::Rate instant_exit_tier_3_fee_enabled bool
Constants16
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Slot | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | 401 | u64 | Abort code | decrease_position_v1decrease_reserved_from_positionpledge_in_positionredeem_from_positionand 1 more |
| 1 | 402 | u64 | Abort code | destroy_position |
| 2 | 403 | u64 | Abort code | open_positionpledge_in_position |
| 3 | 404 | u64 | Abort code | redeem_from_position |
| 4 | 405 | u64 | Abort code | open_position |
| 5 | 406 | u64 | Abort code | decrease_position_v1 |
| 6 | 407 | u64 | Abort code | open_position |
| 7 | 408 | u64 | Abort code | decrease_reserved_from_position |
| 8 | 409 | u64 | Abort code | open_positiondecrease_position_v1redeem_from_position |
| 9 | 410 | u64 | Abort code | decrease_position_v1redeem_from_position |
| 10 | 411 | u64 | Abort code | open_positiondecrease_position_v1redeem_from_position |
| 11 | 412 | u64 | Abort code | decrease_position_v1redeem_from_position |
| 12 | 413 | u64 | Abort code | liquidate_position |
| 13 | 414 | u64 | Abort code | open_position |
| 14 | 415 | u64 | Abort code | open_positiondecrease_position_v1 |
| 15 | 416 | u64 | Abort code | liquidate_position |