@bucket/core-interface
bucket
- Move path
- 0xce7f…4db2::bucket
- Functions
- 7039 public, 0 entry
- Structs
- 5
- Friend modules
- buck
bucket
Functions70
Structs5
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
- Bucket<phantom T0>storekey
id UID min_collateral_ratio u64 recovery_mode_threshold u64 collateral_decimal u8 max_mint_amount Option<u64> collateral_vault Balance<T0> bottle_table bottle::BottleTable surplus_bottle_table Table<address, bottle::Bottle> minted_buck_amount u64 base_fee_rate u64 latest_redemption_time u64 total_flash_loan_amount u64 amount u64 fee u64 - OutputKeycopydropstore
dummy_field bool - OutputVolumestore
volume u64 - PendingRecordstorekey
id UID bucket_pending_debt u64 bucket_pending_collateral u64
Constants11
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 | handle_borrow |
| 1 | 1 | u64 | Abort code | handle_repayhandle_repay_capped |
| 2 | 2 | u64 | Abort code | handle_flash_repay |
| 3 | 3 | u64 | Abort code | handle_redeem |
| 4 | 4 | u64 | Abort code | handle_borrowhandle_withdraw |
| 5 | 5 | u64 | Abort code | handle_borrow |
| 6 | 6 | u64 | Abort code | withdraw_surplus_collateral |
| 7 | 7 | u64 | Abort code | borrow_interest_tableborrow_interest_table_mut |
| 8 | 8 | u64 | Abort code | accrue_interests_by_debtorget_bucket_debtdestroy_empty_strap |
| 9 | "pending_record" // interpreted as UTF8 string | vector<u8> | Value | newadd_pending_record_to_bucketborrow_pending_recordborrow_pending_record_mutand 1 more |
| 10 | "interest_table" // interpreted as UTF8 string | vector<u8> | Value | add_interest_table_to_bucketborrow_interest_tableborrow_interest_table_muthandle_borrowand 8 more |