- Move path
- 0xce7f…4db2::buck
- Functions
- 3226 public, 5 entry
- Structs
- 6
- Friend modules
- None
buck
Functions32
- public fun borrow<T0>(&mut BucketProtocol,&bucket_oracle::BucketOracle,&Clock,Balance<T0>,u64,Option<address>): Balance<BUCK>
- public fun flash_borrow_buck<T0>(&mut BucketProtocol,u64): (Balance<BUCK>, tank::FlashReceipt<BUCK, T0>)
- public fun liquidate_under_normal_mode<T0>(&mut BucketProtocol,&bucket_oracle::BucketOracle,&Clock,address): Balance<T0>
- public fun liquidate_under_recovery_mode<T0>(&mut BucketProtocol,&bucket_oracle::BucketOracle,&Clock,address): Balance<T0>
- public fun redeem<T0>(&mut BucketProtocol,&bucket_oracle::BucketOracle,&Clock,Balance<BUCK>,Option<address>): Balance<T0>
- public fun tank_withdraw<T0>(&mut BucketProtocol,&bucket_oracle::BucketOracle,&Clock,&mut bkt::BktTreasury,tank::ContributorToken<BUCK, T0>): (Balance<BUCK>, Balance<T0>, Balance<bkt::BKT>)
Structs6
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
- AdminCapstorekey
id UID - BUCKdrop
dummy_field bool id UID version u64 buck_treasury_cap TreasuryCap<BUCK> min_bottle_size u64 - BucketType<phantom T0>copydropstore
dummy_field bool - TankType<phantom T0>copydropstore
dummy_field bool - WellType<phantom T0>copydropstore
dummy_field bool
Constants42
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Slot | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | 7 | u64 | Abort code | new_protocolliquidate_under_normal_modepackage_version |
| 1 | 1 | u64 | Abort code | liquidate_under_recovery_modenormally_liquidate |
| 2 | 2 | u64 | Abort code | get_bottle_info_with_interest_by_debtor |
| 3 | 4 | u64 | Abort code | liquidate_under_recovery_modenormally_liquidate |
| 4 | 5 | u64 | Abort code | borrow_bucketborrow_bucket_mutborrow_wellborrow_well_mutand 6 more |
| 5 | 6 | u64 | Abort code | liquidate_under_recovery_mode |
| 6 | 8 | u64 | Abort code | tank_withdraw |
| 7 | 9 | u64 | Abort code | liquidate_under_recovery_mode |
| 8 | 10 | u64 | Abort code | liquidate_under_recovery_mode |
| 9 | 11 | u64 | Abort code | flash_mint |
| 10 | 12 | u64 | Abort code | flash_burn |
| 11 | 13 | u64 | Abort code | flash_burn |
| 12 | 14 | u64 | Abort code | withdrawrepay_debtredeemliquidate_under_normal_modeand 3 more |
| 13 | 15 | u64 | Abort code | init_bottle_interest_index |
| 14 | 16 | u64 | Abort code | set_interest_rate |
| 15 | 17 | u64 | Abort code | outputinput |
| 16 | 18 | u64 | Abort code | update_liquidation_config |
| 17 | 99 | u64 | Abort code | assert_valid_package_version |
| 18 | 404 | u64 | Abort code | top_uprepaycollect_interests_to_flaskmint_sbuckand 1 more |
| 19 | "BUCK" // interpreted as UTF8 string | vector<u8> | Value | new_protocol |
| 20 | "Bucket USD" // interpreted as UTF8 string | vector<u8> | Value | new_protocol |
| 21 | "the stablecoin minted through bucketprotocol.io" // interpreted as UTF8 string | vector<u8> | Value | new_protocol |
| 22 | "https://ipfs.io/ipfs/QmYH4seo7K9CiFqHGDmhbZmzewHEapAhN9aqLRA7af2vMW" // interpreted as UTF8 string | vector<u8> | Value | new_protocol |
| 23 | "borrow" // interpreted as UTF8 string | vector<u8> | Value | borrowborrow_with_strap |
| 24 | "redeem" // interpreted as UTF8 string | vector<u8> | Value | redeem |
| 25 | "liquidate" // interpreted as UTF8 string | vector<u8> | Value | liquidate_under_recovery_modenormally_liquidate |
| 26 | "flashloan" // interpreted as UTF8 string | vector<u8> | Value | flash_repayflash_repay_buck |
| 27 | "max_mint_amount" // interpreted as UTF8 string | vector<u8> | Value | get_bottle_info_with_interest_by_debtor |
| 28 | "min_bottle_size" // interpreted as UTF8 string | vector<u8> | Value | get_bottle_info_with_interest_by_debtor |
| 29 | "version" // interpreted as UTF8 string | vector<u8> | Value | get_bottle_info_with_interest_by_debtor |
| 30 | "fee_rate" // interpreted as UTF8 string | vector<u8> | Value | update_flash_mint_config |
| 31 | "max_amount" // interpreted as UTF8 string | vector<u8> | Value | update_flash_mint_config |
| 32 | "flashmint" // interpreted as UTF8 string | vector<u8> | Value | flash_burn |
| 33 | "charge_fee_rate" // interpreted as UTF8 string | vector<u8> | Value | update_reservoir_fee_rate |
| 34 | "discharge_fee_rate" // interpreted as UTF8 string | vector<u8> | Value | update_reservoir_fee_rate |
| 35 | "charge" // interpreted as UTF8 string | vector<u8> | Value | charge_reservoir_internal |
| 36 | "discharge" // interpreted as UTF8 string | vector<u8> | Value | discharge_reservoir_internal |
| 37 | "interest" // interpreted as UTF8 string | vector<u8> | Value | collect_interests |
| 38 | "interest_rate" // interpreted as UTF8 string | vector<u8> | Value | set_interest_rate |
| 39 | "min_collateral_ratio" // interpreted as UTF8 string | vector<u8> | Value | update_liquidation_config |
| 40 | "recovery_mode_threshold" // interpreted as UTF8 string | vector<u8> | Value | update_liquidation_config |
| 41 | "test_version" // interpreted as UTF8 string | vector<u8> | Value | add_test_versionremove_test_versionassert_valid_package_version |