- Move path
- 0xce7f…4db2::tank
- Functions
- 3122 public, 0 entry
- Structs
- 6
- Friend modules
- buck
tank
Functions31
- public fun claim<T0, T1>(&mut Tank<T0, T1>,&mut bkt::BktTreasury,&mut ContributorToken<T0, T1>): (Balance<T1>, Balance<bkt::BKT>)
- public fun err_deposit_and_withdraw_in_same_txn()
- public fun get_contributor_token_value<T0, T1>(&ContributorToken<T0, T1>): (u64, u64, u64, u64, u64, u64)
Structs6
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 deposit_amount u64 start_p u64 start_s u64 start_g u64 start_epoch u64 start_scale u64 ctx_epoch u64 - DigestKeycopydropstore
dummy_field bool - EpochAndScalecopydropstore
epoch u64 scale u64 amount u64 fee u64 - TANKdrop
dummy_field bool - Tank<phantom T0, phantom T1>storekey
id UID reserve Balance<T0> collateral_pool Balance<T1> current_p u64 current_epoch u64 epoch_scale_sum_map Table<EpochAndScale, u64> current_scale u64 bkt_pool Balance<bkt::BKT> epoch_scale_gain_map Table<EpochAndScale, u64> total_flash_loan_amount u64
Constants7
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Slot | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | 0 | u64 | Abort code | deposit |
| 1 | 1 | u64 | Abort code | handle_flash_repay |
| 2 | 3 | u64 | Abort code | get_collateral_reward_amount |
| 3 | 4 | u64 | Abort code | absorb |
| 4 | 6 | u64 | Abort code | absorb |
| 5 | 7 | u64 | Abort code | deposit |
| 6 | 8 | u64 | Abort code | err_deposit_and_withdraw_in_same_txn |