bottle
Module0x3466…98bb
- Move path
- 0xce7f…4db2::bottle
- Functions
- 5322 public, 0 entry
- Structs
- 2
- Friend modules
- bucket
bottle
Declarations
Rebuilt from the module interface. No verified source is published, and function bodies are only available as bytecode.
module bottle;
struct Bottle has store, key {
id: UID,
collateral_amount: u64,
buck_amount: u64,
stake_amount: u64,
reward_coll_snapshot: u128,
reward_debt_snapshot: u128,
}
struct BottleTable has store, key {
id: UID,
total_stake: u64,
total_stake_snapshot: u64,
total_collateral_snapshot: u64,
debt_per_unit_stake: u128,
reward_per_unit_stake: u128,
last_reward_error: u128,
last_debt_error: u128,
}
fun compute_buck_value_to_collateral(u64,u8,u64,u64): u64
public fun cr_greater_with_interest(&BottleTable,&interest::InterestTable,&Bottle,&Bottle,&Clock): bool
public fun cr_less_or_equal_with_interest(&BottleTable,&interest::InterestTable,&Bottle,&Bottle,&Clock): bool
fun find_downward_and_insert_with_interest(&mut BottleTable,&interest::InterestTable,address,Bottle,Option<address>,&Clock)
fun find_upward_and_insert_with_interest(&mut BottleTable,&interest::InterestTable,address,Bottle,Option<address>,&Clock)
public fun get_bottle_info_with_interest(&BottleTable,&Bottle,&interest::InterestTable,&Clock): (u64, u64)
public fun get_bottle_info_with_interest_by_debtor(&BottleTable,address,&interest::InterestTable,&Clock): (u64, u64)
public(package) fun insert_bottle(&mut BottleTable,&interest::InterestTable,address,Bottle,Option<address>,&Clock)
public(package) fun record_repay_capped<T0>(&mut Bottle,u64,&bucket_oracle::BucketOracle,&Clock,u64,u8): (bool, u64)