主厨合约
MasterChef
Contract info
Resources
MasterChef
struct MasterChef has key {
signer_cap: account::SignerCapability,
admin: address,
upkeep_admin: address,
lp_to_pid: TableWithLength<string::String, u64>,
lps: vector<string::String>,
pool_info: vector<PoolInfo>,
total_regular_alloc_point: u64,
total_special_alloc_point: u64,
cake_per_second: u64,
cake_rate_to_regular: u64,
cake_rate_to_special: u64,
last_upkeep_timestamp: u64,
end_timestamp: u64
}Name
PoolUserInfo
Name
Type
Description
UserInfo
Name
Type
Description
PoolInfo
Name
Type
Description
Entry Functions
Deposit
Name
Type
Description
Withdraw
Name
Type
Description
Emergency Withdraw
Name
Type
Description
Mass Update Pools
Update Pool
Name
Type
Description
Public Function
Pending Cake
Input Values
Name
Type
Description
Return Values
Type
Description
Pool Length
Return Values
Type
Description
Audit
Last updated
Was this helpful?