tank
Module0x1f2e…df59
- Move path
- 0xce7f…4db2::tank
- Functions
- 3021 public, 0 entry
- Structs
- 5
- Friend modules
- buck
tank
Declarations
Rebuilt from the module interface. No verified source is published, and function bodies are only available as bytecode.
module tank;
struct ContributorToken<phantom T0, phantom T1> has store, key {
id: UID,
deposit_amount: u64,
start_p: u64,
start_s: u64,
start_g: u64,
start_epoch: u64,
start_scale: u64,
ctx_epoch: u64,
}
struct EpochAndScale has copy, drop, store {
epoch: u64,
scale: u64,
}
struct FlashReceipt<phantom T0, phantom T1> {
amount: u64,
fee: u64,
}
struct TANK has drop {
dummy_field: bool,
}
struct Tank<phantom T0, phantom T1> has store, key {
id: UID,
reserve: Balance<T0>,
collateral_pool: Balance<T1>,
current_p: u64,
current_epoch: u64,
current_scale: u64,
bkt_pool: Balance<bkt::BKT>,
total_flash_loan_amount: u64,
}
public fun claim<T0, T1>(&mut Tank<T0, T1>,&mut bkt::BktTreasury,&mut ContributorToken<T0, T1>): (Balance<T1>, Balance<bkt::BKT>)
public fun get_contributor_token_value<T0, T1>(&ContributorToken<T0, T1>): (u64, u64, u64, u64, u64, u64)
public(package) fun handle_flash_borrow<T0, T1>(&mut Tank<T0, T1>,u64): (Balance<T0>, FlashReceipt<T0, T1>)
public(package) fun handle_flash_repay<T0, T1>(&mut Tank<T0, T1>,Balance<T0>,FlashReceipt<T0, T1>): Balance<T0>
public(package) fun withdraw<T0, T1>(&mut Tank<T0, T1>,&mut bkt::BktTreasury,ContributorToken<T0, T1>): (Balance<T0>, Balance<T1>, Balance<bkt::BKT>)