- Move path
- 0xce7f…4db2::buck
- Functions
- 9580 public, 5 entry
- Structs
- 14
- Friend modules
- None
buck
Functions95
- public fun borrow<T0>(&mut BucketProtocol,&bucket_oracle::BucketOracle,&Clock,Balance<T0>,u64,Option<address>): Balance<BUCK>
- public fun borrow_with_strap<T0>(&mut BucketProtocol,&bucket_oracle::BucketOracle,&strap::BottleStrap<T0>,&Clock,Balance<T0>,u64,Option<address>): Balance<BUCK>
- public fun buck_to_sbuck(&mut BucketProtocol,&mut sbuck::Flask<BUCK>,&Clock,Balance<BUCK>): Balance<sbuck::SBUCK>
- public fun burn_sbuck(&mut BucketProtocol,&mut sbuck::Flask<BUCK>,Coin<sbuck::SBUCK>): Balance<BUCK>
- public fun charge_reservoir_by_partner<T0, T1: drop>(&mut BucketProtocol,Balance<T0>,T1): Balance<BUCK>
- public fun charge_reservoir_without_fee<T0>(&NoFeePermission,&mut BucketProtocol,Balance<T0>): Balance<BUCK>
- public fun create_bucket_with_interest_table<T0>(&AdminCap,&mut BucketProtocol,u64,u64,u8,Option<u64>,&Clock,u256)
Structs14
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 - BUCKET_PROTOCOLdrop
dummy_field bool id UID version u64 buck_treasury_cap TreasuryCap<BUCK> min_bottle_size u64 - BucketType<phantom T0>copydropstore
dummy_field bool - FlashMintConfigstorekey
id UID fee_rate u64 max_amount u64 total_amount u64 config_id ID mint_amount u64 fee_amount u64 id UID - ReservoirType<phantom T0>copydropstore
dummy_field bool - SBuckEmissionstorekey
id UID latest_time u64 rate float::Float - SBuckRateKeycopydropstore
dummy_field bool - TankType<phantom T0>copydropstore
dummy_field bool - TestVersionstorekey
id UID version u64 - 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 |