staking_pool
Module0x0000…0003
- Move path
- 0x0000…0003::staking_pool
- Functions
- 4219 public, 2 entry
- Structs
- 7
- Friend modules
- sui_systemvalidatorvalidator_set
staking_pool
Functions42
Structs7
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
- FungibleStakedSuistorekey
id UID pool_id ID value u64 - FungibleStakedSuiDatastorekey
id UID total_supply u64 principal Balance<SUI> - FungibleStakedSuiDataKeycopydropstore
dummy_field bool - PoolTokenExchangeRatecopydropstore
sui_amount u64 pool_token_amount u64 - StakedSuistorekey
id UID pool_id ID stake_activation_epoch u64 principal Balance<SUI> - StakingPoolstorekey
id UID activation_epoch Option<u64> deactivation_epoch Option<u64> sui_balance u64 rewards_pool Balance<SUI> pool_token_balance u64 exchange_rates Table<u64, PoolTokenExchangeRate> pending_stake u64 pending_total_sui_withdraw u64 pending_pool_token_withdraw u64 extra_fields Bag - UnderflowSuiBalancecopydropstore
dummy_field bool
Constants22
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Index | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | 1000000000 | u64 | Value | split |
| 1 | 0 | u64 | Abort code | split_fungible_staked_sui |
| 2 | 1 | u64 | Abort code | redeem_fungible_staked_suiconvert_to_fungible_staked_suiwithdraw_from_principaljoin_fungible_staked_sui |
| 3 | 2 | u64 | Value | |
| 4 | 3 | u64 | Abort code | split |
| 5 | 4 | u64 | Value | |
| 6 | 5 | u64 | Value | |
| 7 | 6 | u64 | Value | |
| 8 | 7 | u64 | Value | |
| 9 | 8 | u64 | Value | |
| 10 | 9 | u64 | Abort code | check_balance_invariants |
| 11 | 10 | u64 | Abort code | request_add_stake |
| 12 | 11 | u64 | Abort code | deactivate_staking_pool |
| 13 | 12 | u64 | Abort code | split |
| 14 | 13 | u64 | Value | |
| 15 | 14 | u64 | Abort code | activate_staking_pool |
| 16 | 15 | u64 | Abort code | convert_to_fungible_staked_sui |
| 17 | 16 | u64 | Abort code | activate_staking_pool |
| 18 | 17 | u64 | Abort code | request_add_stake |
| 19 | 18 | u64 | Abort code | convert_to_fungible_staked_suisplit |
| 20 | 19 | u64 | Abort code | convert_to_fungible_staked_sui |
| 21 | 20 | u64 | Abort code | calculate_fungible_staked_sui_withdraw_amount |