pub trait WeightInfo {
Show 19 methods // Required methods fn create_base_pool(b: u32, s: u32) -> Weight; fn create_meta_pool(m: u32, s: u32) -> Weight; fn add_liquidity(b: u32) -> Weight; fn swap() -> Weight; fn remove_liquidity(b: u32) -> Weight; fn remove_liquidity_one_currency() -> Weight; fn remove_liquidity_imbalance(b: u32) -> Weight; fn add_pool_and_base_pool_liquidity(b: u32, m: u32) -> Weight; fn remove_pool_and_base_pool_liquidity(b: u32, m: u32) -> Weight; fn remove_pool_and_base_pool_liquidity_one_currency() -> Weight; fn swap_pool_from_base() -> Weight; fn swap_pool_to_base() -> Weight; fn swap_meta_pool_underlying() -> Weight; fn update_fee_receiver() -> Weight; fn set_swap_fee() -> Weight; fn set_admin_fee() -> Weight; fn ramp_a() -> Weight; fn stop_ramp_a() -> Weight; fn withdraw_admin_fee() -> Weight;
}
Expand description

Weight functions needed for dex_stable.

Required Methods§

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn create_base_pool(b: u32, _s: u32) -> Weight

Storage: DexStable NextPoolId (r:1 w:1) Proof: DexStable NextPoolId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: DexStable LpCurrencies (r:1 w:1) Proof: DexStable LpCurrencies (max_values: None, max_size: Some(31), added: 2506, mode: MaxEncodedLen) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: DexStable Pools (r:1 w:1) Proof: DexStable Pools (max_values: None, max_size: Some(816), added: 3291, mode: MaxEncodedLen) The range of component b is [2, 10]. The range of component s is [0, 50].

source§

fn create_meta_pool(m: u32, s: u32) -> Weight

Storage: DexStable LpCurrencies (r:2 w:1) Proof: DexStable LpCurrencies (max_values: None, max_size: Some(31), added: 2506, mode: MaxEncodedLen) Storage: DexStable NextPoolId (r:1 w:1) Proof: DexStable NextPoolId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: DexStable Pools (r:2 w:1) Proof: DexStable Pools (max_values: None, max_size: Some(816), added: 3291, mode: MaxEncodedLen) Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: Tokens TotalIssuance (r:1 w:0) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(35), added: 2510, mode: MaxEncodedLen) The range of component m is [2, 10]. The range of component s is [0, 50].

source§

fn add_liquidity(b: u32) -> Weight

Storage: DexStable Pools (r:1 w:1) Proof: DexStable Pools (max_values: None, max_size: Some(816), added: 3291, mode: MaxEncodedLen) Storage: Tokens TotalIssuance (r:1 w:1) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(35), added: 2510, mode: MaxEncodedLen) Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: Tokens Accounts (r:21 w:21) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) The range of component b is [2, 10].

source§

fn swap() -> Weight

Storage: DexStable Pools (r:1 w:1) Proof: DexStable Pools (max_values: None, max_size: Some(816), added: 3291, mode: MaxEncodedLen) Storage: Tokens Accounts (r:4 w:4) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: System Account (r:1 w:0) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

source§

fn remove_liquidity(b: u32) -> Weight

Storage: DexStable Pools (r:1 w:1) Proof: DexStable Pools (max_values: None, max_size: Some(816), added: 3291, mode: MaxEncodedLen) Storage: Tokens TotalIssuance (r:1 w:1) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(35), added: 2510, mode: MaxEncodedLen) Storage: Tokens Accounts (r:21 w:21) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: System Account (r:1 w:0) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) The range of component b is [2, 10].

source§

fn remove_liquidity_one_currency() -> Weight

Storage: DexStable Pools (r:1 w:1) Proof: DexStable Pools (max_values: None, max_size: Some(816), added: 3291, mode: MaxEncodedLen) Storage: Tokens TotalIssuance (r:1 w:1) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(35), added: 2510, mode: MaxEncodedLen) Storage: Tokens Accounts (r:3 w:3) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: System Account (r:1 w:0) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

source§

fn remove_liquidity_imbalance(b: u32) -> Weight

Storage: DexStable Pools (r:1 w:1) Proof: DexStable Pools (max_values: None, max_size: Some(816), added: 3291, mode: MaxEncodedLen) Storage: Tokens TotalIssuance (r:1 w:1) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(35), added: 2510, mode: MaxEncodedLen) Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: Tokens Accounts (r:21 w:21) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: System Account (r:1 w:0) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) The range of component b is [2, 10].

source§

fn add_pool_and_base_pool_liquidity(b: u32, m: u32) -> Weight

Storage: DexStable Pools (r:2 w:2) Proof: DexStable Pools (max_values: None, max_size: Some(816), added: 3291, mode: MaxEncodedLen) Storage: Tokens TotalIssuance (r:2 w:2) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(35), added: 2510, mode: MaxEncodedLen) Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: Tokens Accounts (r:41 w:41) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) The range of component b is [2, 10]. The range of component m is [2, 10].

source§

fn remove_pool_and_base_pool_liquidity(b: u32, m: u32) -> Weight

Storage: DexStable Pools (r:2 w:2) Proof: DexStable Pools (max_values: None, max_size: Some(816), added: 3291, mode: MaxEncodedLen) Storage: Tokens Accounts (r:41 w:41) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: Tokens TotalIssuance (r:2 w:2) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(35), added: 2510, mode: MaxEncodedLen) Storage: System Account (r:2 w:0) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) The range of component b is [2, 10]. The range of component m is [2, 10].

source§

fn remove_pool_and_base_pool_liquidity_one_currency() -> Weight

Storage: DexStable Pools (r:2 w:2) Proof: DexStable Pools (max_values: None, max_size: Some(816), added: 3291, mode: MaxEncodedLen) Storage: Tokens Accounts (r:5 w:5) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: Tokens TotalIssuance (r:2 w:2) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(35), added: 2510, mode: MaxEncodedLen) Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: System Account (r:2 w:0) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

source§

fn swap_pool_from_base() -> Weight

Storage: DexStable Pools (r:2 w:2) Proof: DexStable Pools (max_values: None, max_size: Some(816), added: 3291, mode: MaxEncodedLen) Storage: Tokens TotalIssuance (r:1 w:1) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(35), added: 2510, mode: MaxEncodedLen) Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: Tokens Accounts (r:15 w:6) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: System Account (r:1 w:0) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

source§

fn swap_pool_to_base() -> Weight

Storage: DexStable Pools (r:2 w:2) Proof: DexStable Pools (max_values: None, max_size: Some(816), added: 3291, mode: MaxEncodedLen) Storage: Tokens Accounts (r:6 w:6) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: System Account (r:2 w:0) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Tokens TotalIssuance (r:1 w:1) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(35), added: 2510, mode: MaxEncodedLen)

source§

fn swap_meta_pool_underlying() -> Weight

Storage: DexStable Pools (r:1 w:1) Proof: DexStable Pools (max_values: None, max_size: Some(816), added: 3291, mode: MaxEncodedLen) Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: Tokens Accounts (r:4 w:4) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: System Account (r:1 w:0) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

source§

fn update_fee_receiver() -> Weight

Storage: DexStable Pools (r:1 w:1) Proof: DexStable Pools (max_values: None, max_size: Some(816), added: 3291, mode: MaxEncodedLen)

source§

fn set_swap_fee() -> Weight

Storage: DexStable Pools (r:1 w:1) Proof: DexStable Pools (max_values: None, max_size: Some(816), added: 3291, mode: MaxEncodedLen)

source§

fn set_admin_fee() -> Weight

Storage: DexStable Pools (r:1 w:1) Proof: DexStable Pools (max_values: None, max_size: Some(816), added: 3291, mode: MaxEncodedLen)

source§

fn ramp_a() -> Weight

Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: DexStable Pools (r:1 w:1) Proof: DexStable Pools (max_values: None, max_size: Some(816), added: 3291, mode: MaxEncodedLen)

source§

fn stop_ramp_a() -> Weight

Storage: DexStable Pools (r:1 w:1) Proof: DexStable Pools (max_values: None, max_size: Some(816), added: 3291, mode: MaxEncodedLen) Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)

source§

fn withdraw_admin_fee() -> Weight

Storage: DexStable Pools (r:1 w:1) Proof: DexStable Pools (max_values: None, max_size: Some(816), added: 3291, mode: MaxEncodedLen) Storage: Tokens Accounts (r:10 w:0) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen)

Implementors§