Search by name, SuiNS, address, digest, object ID, coin type or checkpoint.

API

well

Module0x3466…98bb
Move path
0xce7f…4db2::well
Functions
2017 public, 0 entry
Structs
3
Friend modules
buck
well

Declarations

Rebuilt from the module interface. No verified source is published, and function bodies are only available as bytecode.

module well;
struct StakedBKT<phantom T0> has store, key {
id: UID,
stake_amount: u64,
start_s: u128,
stake_weight: u64,
lock_until: u64,
}
struct WELL has drop {
dummy_field: bool,
}
struct Well<phantom T0> has store, key {
id: UID,
shared_pool: Balance<T0>,
reserve: Balance<T0>,
staked: Balance<bkt::BKT>,
total_weight: u64,
current_s: u128,
}
public fun airdrop<T0>(&mut Well<T0>,Balance<T0>)
public fun claim<T0>(&mut Well<T0>,&mut StakedBKT<T0>): Balance<T0>
public fun collect_fee<T0>(&mut Well<T0>,Balance<T0>)
public fun collect_fee_from<T0>(&mut Well<T0>,Balance<T0>,String)
fun compute_weight(u64, u64): u64
public fun force_unstake<T0>(&Clock,&mut Well<T0>,&mut bkt::BktTreasury,StakedBKT<T0>): (Balance<bkt::BKT>, Balance<T0>)
public fun get_reward_amount<T0>(&Well<T0>,&StakedBKT<T0>): u64
public fun get_token_lock_until<T0>(&StakedBKT<T0>): u64
public fun get_token_penalty_amount<T0>(&StakedBKT<T0>,u64): u64
public fun get_token_stake_amount<T0>(&StakedBKT<T0>): u64
public fun get_token_stake_weight<T0>(&StakedBKT<T0>): u64
public fun get_well_pool_balance<T0>(&Well<T0>): u64
public fun get_well_reserve_balance<T0>(&Well<T0>): u64
public fun get_well_staked_balance<T0>(&Well<T0>): u64
public fun get_well_total_weight<T0>(&Well<T0>): u64
fun init(WELL)
public(package) fun new<T0>(): Well<T0>
public fun stake<T0>(&Clock,&mut Well<T0>,Balance<bkt::BKT>,u64): StakedBKT<T0>
public fun unstake<T0>(&Clock,&mut Well<T0>,StakedBKT<T0>): (Balance<bkt::BKT>, Balance<T0>)
public fun withdraw_reserve<T0>(&bkt::BktAdminCap,&mut Well<T0>): Balance<T0>