Package 0x894a…0fd9
model
- Move path
- 0x7fd8…1fec::model
- Functions
- 214 public, 4 entry
- Structs
- 5
model
Functions21
- public fun compute_oi_funding_rate(&OiFundingModel,decimal::Decimal,decimal::Decimal,u64): srate::SRate
Structs5
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
id UID multiplier decimal::Decimal max rate::Rate - OiFundingModelstorekey
id UID multiplier decimal::Decimal exponent decimal::Decimal max rate::Rate - RebaseFeeExponentKeycopydropstore
dummy_field bool id UID base rate::Rate multiplier decimal::Decimal id UID multiplier decimal::Decimal
Constants12
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Slot | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | 19001 | u64 | Abort code | validate_base |
| 1 | 19002 | u64 | Abort code | validate_multipliervalidate_funding_multiplier |
| 2 | 19003 | u64 | Abort code | validate_max_rate |
| 3 | 19004 | u64 | Abort code | validate_exponent_rawvalidate_rebase_exponent_raw |
| 4 | 1000000000000000000 | u256 | Value | validate_exponent_rawvalidate_rebase_exponent_rawget_rebase_fee_exponent |
| 5 | 28800 | u64 | Value | compute_reserving_fee_ratecompute_funding_fee_ratecompute_oi_funding_rate_capped |
| 6 | 10000000000000000 | u256 | Value | validate_max_rate |
| 7 | 100000000000000 | u256 | Value | validate_basevalidate_multipliervalidate_max_rate |
| 8 | 100000000000000000 | u256 | Value | validate_basevalidate_multipliervalidate_funding_multiplier |
| 9 | 100000000000 | u256 | Value | validate_funding_multiplier |
| 10 | 10000000000000000000 | u256 | Value | validate_exponent_raw |
| 11 | 3000000000000000000 | u256 | Value | validate_rebase_exponent_raw |