core
Module0x07e7…67a7
- Move path
- 0xd5b3…fd97::core
- Functions
- 472 public, 0 entry
- Structs
- 20
Declarations
Rebuilt from the module interface. No verified source is published, and function bodies are only available as bytecode.
module core;
struct AddDepositEvent<phantom T0> has copy, drop {
deposit: address,
amount: u64,
}
struct AddPoolEvent<phantom T0> has copy, drop {
pool: address,
coin_type: TypeName,
}
struct AddRewardConfigEvent<phantom T0> has copy, drop {
pool: address,
reward_type: TypeName,
reward_rate: u64,
start_at: u64,
bank: address,
boost_active: bool,
}
struct AfterSetBoostEvent has copy, drop {
pool: address,
deposit: address,
old_debts: VecMap<TypeName, u64>,
old_share: u128,
old_boost_share: u128,
new_debts: VecMap<TypeName, u64>,
new_share: u128,
new_boost_share: u128,
}
struct Bank<phantom T0, phantom T1> has key {
id: UID,
pool: address,
balance: Balance<T1>,
}
struct Deposit<phantom T0> has key {
id: UID,
pool: address,
amount: u64,
share: u128,
boost_share: u128,
debts: VecMap<TypeName, u64>,
credits: VecMap<TypeName, u64>,
owner: address,
}
struct DepositEvent<phantom T0> has copy, drop {
deposit: address,
owner: address,
pool: address,
amount: u64,
}
struct DepositInfo<phantom T0> has key {
id: UID,
pool: address,
deposit: address,
}
struct FlipBoostEvent has copy, drop {
pool: address,
reward_type: TypeName,
}
struct FundingBankEvent<phantom T0> has copy, drop {
bank: address,
amount: u64,
}
struct HarvestEvent<phantom T0> has copy, drop {
deposit: address,
reward_type: TypeName,
amount: u64,
}
struct Pool<phantom T0> has store, key {
id: UID,
active: bool,
balance: Balance<T0>,
total_share: u128,
total_boost_share: u128,
users: Table<address, address>,
}
struct RewardConfig has store {
reward_rate_before: u64,
rate_change_at: u64,
reward_rate_after: u64,
per_share: u128,
last_update_time: u64,
bank: address,
boost_active: bool,
}
struct SetBoostEvent has copy, drop {
addr: address,
boost: u64,
}
struct SetPoolEvent<phantom T0> has copy, drop {
pool: address,
active: bool,
}
struct SetRewardConfigEvent<phantom T0> has copy, drop {
pool: address,
reward_type: TypeName,
reward_rate: u64,
start_at: u64,
}
struct Setting has key {
id: UID,
version: u64,
pools: VecMap<TypeName, address>,
boosts: VecMap<address, u64>,
}
struct SettleEvent has copy, drop {
pool: address,
deposit: address,
old_debts: VecMap<TypeName, u64>,
new_debts: VecMap<TypeName, u64>,
}
struct VersionUpdatedEvent has copy, drop {
old: u64,
new: u64,
}
struct WithdrawEvent<phantom T0> has copy, drop {
deposit: address,
amount: u64,
}
public(package) fun calculate_per_share_of_reward_config(u64,u64,u64,u128,u64,u128,u64): u128
fun create_reward_config_with_bank<T0, T1>(address,u64,u64,bool,&Clock): (RewardConfig, Bank<T0, T1>)
fun init()
fun now(&Clock): u64
public(package) fun per_share_of_period(u64,u64,u64,u128): u128