Trait farming::WeightInfo

source ·
pub trait WeightInfo {
    // Required methods
    fn refresh_pool(a: u32) -> Weight;
    fn prepare_accounts_for_vesting(a: u32, b: u32) -> Weight;
    fn vest_account_rewards(a: u32) -> Weight;
}
Expand description

Weight functions needed for farming.

Required Methods§

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn refresh_pool(a: u32) -> Weight

Storage: Technical TechAccounts (r:1 w:0) Proof Skipped: Technical TechAccounts (max_values: None, max_size: None, mode: Measured) Storage: Farming PoolFarmers (r:1 w:1) Proof Skipped: Farming PoolFarmers (max_values: None, max_size: None, mode: Measured) Storage: PoolXYK PoolProviders (r:21 w:0) Proof Skipped: PoolXYK PoolProviders (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:1 w:0) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Tokens Accounts (r:1 w:0) Proof: Tokens Accounts (max_values: None, max_size: Some(136), added: 2611, mode: MaxEncodedLen) The range of component a is [1, 20].

source§

fn prepare_accounts_for_vesting(a: u32, b: u32) -> Weight

Storage: Farming PoolFarmers (r:30 w:0) Proof Skipped: Farming PoolFarmers (max_values: None, max_size: None, mode: Measured) The range of component a is [1, 29]. The range of component b is [1, 43].

source§

fn vest_account_rewards(a: u32) -> Weight

Storage: VestedRewards Rewards (r:20 w:20) Proof Skipped: VestedRewards Rewards (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:20 w:20) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: VestedRewards TotalRewards (r:1 w:1) Proof Skipped: VestedRewards TotalRewards (max_values: Some(1), max_size: None, mode: Measured) The range of component a is [1, 20].

Implementors§