pub trait WeightInfo {
// Required methods
fn initialize_pool() -> Weight;
fn set_reference_asset() -> Weight;
fn set_optional_reward_multiplier() -> Weight;
fn on_initialize(n: u32) -> Weight;
fn set_price_change_config() -> Weight;
fn set_price_bias() -> Weight;
fn quote() -> Weight;
fn exchange() -> Weight;
fn can_exchange() -> Weight;
fn check_rewards() -> Weight;
}
Expand description
Weight functions needed for multicollateral_bonding_curve_pool.
Required Methods§
fn initialize_pool() -> Weight
fn set_reference_asset() -> Weight
fn set_optional_reward_multiplier() -> Weight
fn on_initialize(n: u32) -> Weight
fn set_price_change_config() -> Weight
fn set_price_bias() -> Weight
fn quote() -> Weight
fn exchange() -> Weight
fn can_exchange() -> Weight
fn check_rewards() -> Weight
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn initialize_pool() -> Weight
fn initialize_pool() -> Weight
Storage: DEXManager DEXInfos (r:1 w:0) Proof Skipped: DEXManager DEXInfos (max_values: None, max_size: None, mode: Measured) Storage: Permissions Permissions (r:1 w:0) Proof Skipped: Permissions Permissions (max_values: None, max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool EnabledTargets (r:1 w:1) Proof Skipped: MulticollateralBondingCurvePool EnabledTargets (max_values: Some(1), max_size: None, mode: Measured) Storage: PriceTools PriceInfos (r:1 w:1) Proof Skipped: PriceTools PriceInfos (max_values: None, max_size: None, mode: Measured) Storage: TradingPair EnabledSources (r:1 w:1) Proof Skipped: TradingPair EnabledSources (max_values: None, max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool IncentivisedCurrenciesNum (r:1 w:1) Proof Skipped: MulticollateralBondingCurvePool IncentivisedCurrenciesNum (max_values: Some(1), max_size: None, mode: Measured)
source§fn set_reference_asset() -> Weight
fn set_reference_asset() -> Weight
Storage: DEXManager DEXInfos (r:1 w:0) Proof Skipped: DEXManager DEXInfos (max_values: None, max_size: None, mode: Measured) Storage: Permissions Permissions (r:1 w:0) Proof Skipped: Permissions Permissions (max_values: None, max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool ReferenceAssetId (r:0 w:1) Proof Skipped: MulticollateralBondingCurvePool ReferenceAssetId (max_values: Some(1), max_size: None, mode: Measured)
source§fn set_optional_reward_multiplier() -> Weight
fn set_optional_reward_multiplier() -> Weight
Storage: DEXManager DEXInfos (r:1 w:0) Proof Skipped: DEXManager DEXInfos (max_values: None, max_size: None, mode: Measured) Storage: Permissions Permissions (r:1 w:0) Proof Skipped: Permissions Permissions (max_values: None, max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool EnabledTargets (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool EnabledTargets (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool AssetsWithOptionalRewardMultiplier (r:1 w:1) Proof Skipped: MulticollateralBondingCurvePool AssetsWithOptionalRewardMultiplier (max_values: None, max_size: None, mode: Measured)
source§fn on_initialize(n: u32) -> Weight
fn on_initialize(n: u32) -> Weight
Storage: MulticollateralBondingCurvePool FreeReservesAccountId (r:1 w:0)
Proof Skipped: MulticollateralBondingCurvePool FreeReservesAccountId (max_values: Some(1), max_size: None, mode: Measured)
Storage: MulticollateralBondingCurvePool PendingFreeReserves (r:1 w:1)
Proof Skipped: MulticollateralBondingCurvePool PendingFreeReserves (max_values: Some(1), max_size: None, mode: Measured)
Storage: DEXManager DEXInfos (r:1 w:0)
Proof Skipped: DEXManager DEXInfos (max_values: None, max_size: None, mode: Measured)
Storage: XSTPool EnabledSynthetics (r:2 w:0)
Proof Skipped: XSTPool EnabledSynthetics (max_values: None, max_size: None, mode: Measured)
Storage: DEXAPI EnabledSourceTypes (r:1 w:0)
Proof Skipped: DEXAPI EnabledSourceTypes (max_values: Some(1), max_size: None, mode: Measured)
Storage: PoolXYK Properties (r:1 w:0)
Proof Skipped: PoolXYK Properties (max_values: None, max_size: None, mode: Measured)
Storage: TradingPair LockedLiquiditySources (r:1 w:0)
Proof Skipped: TradingPair LockedLiquiditySources (max_values: Some(1), max_size: None, mode: Measured)
Storage: Tokens Accounts (r:2 w:0)
Proof: Tokens Accounts (max_values: None, max_size: Some(136), added: 2611, mode: MaxEncodedLen)
Storage: System Account (r:1 w:0)
Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
Storage: Technical TechAccounts (r:1 w:0)
Proof Skipped: Technical TechAccounts (max_values: None, max_size: None, mode: Measured)
Storage: Assets AssetOwners (r:1 w:0)
Proof Skipped: Assets AssetOwners (max_values: None, max_size: None, mode: Measured)
The range of component n
is [0, 10]
.
source§fn set_price_change_config() -> Weight
fn set_price_change_config() -> Weight
Storage: MulticollateralBondingCurvePool PriceChangeStep (r:0 w:1) Proof Skipped: MulticollateralBondingCurvePool PriceChangeStep (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool PriceChangeRate (r:0 w:1) Proof Skipped: MulticollateralBondingCurvePool PriceChangeRate (max_values: Some(1), max_size: None, mode: Measured)
source§fn set_price_bias() -> Weight
fn set_price_bias() -> Weight
Storage: MulticollateralBondingCurvePool InitialPrice (r:0 w:1) Proof Skipped: MulticollateralBondingCurvePool InitialPrice (max_values: Some(1), max_size: None, mode: Measured)
source§fn quote() -> Weight
fn quote() -> Weight
Storage: MulticollateralBondingCurvePool EnabledTargets (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool EnabledTargets (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool PriceChangeStep (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool PriceChangeStep (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool PriceChangeRate (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool PriceChangeRate (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool InitialPrice (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool InitialPrice (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool ReferenceAssetId (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool ReferenceAssetId (max_values: Some(1), max_size: None, mode: Measured) Storage: PriceTools PriceInfos (r:2 w:0) Proof Skipped: PriceTools PriceInfos (max_values: None, max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool BaseFee (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool BaseFee (max_values: Some(1), max_size: None, mode: Measured)
source§fn exchange() -> Weight
fn exchange() -> Weight
Storage: MulticollateralBondingCurvePool EnabledTargets (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool EnabledTargets (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool ReservesAcc (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool ReservesAcc (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool PriceChangeStep (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool PriceChangeStep (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool PriceChangeRate (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool PriceChangeRate (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool InitialPrice (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool InitialPrice (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool ReferenceAssetId (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool ReferenceAssetId (max_values: Some(1), max_size: None, mode: Measured) Storage: PriceTools PriceInfos (r:2 w:0) Proof Skipped: PriceTools PriceInfos (max_values: None, max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool BaseFee (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool BaseFee (max_values: Some(1), max_size: None, mode: Measured) Storage: Tokens Accounts (r:3 w:3) Proof: Tokens Accounts (max_values: None, max_size: Some(136), added: 2611, mode: MaxEncodedLen) Storage: Assets AssetOwners (r:1 w:0) Proof Skipped: Assets AssetOwners (max_values: None, max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool IncentivisedCurrenciesNum (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool IncentivisedCurrenciesNum (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool InitialPswapRewardsSupply (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool InitialPswapRewardsSupply (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool AssetsWithOptionalRewardMultiplier (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool AssetsWithOptionalRewardMultiplier (max_values: None, max_size: None, mode: Measured) Storage: VestedRewards Rewards (r:1 w:1) Proof Skipped: VestedRewards Rewards (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:3 w:3) 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) Storage: Technical TechAccounts (r:1 w:0) Proof Skipped: Technical TechAccounts (max_values: None, max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool AlwaysDistributeCoefficient (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool AlwaysDistributeCoefficient (max_values: Some(1), max_size: None, mode: Measured) Storage: DEXManager DEXInfos (r:1 w:0) Proof Skipped: DEXManager DEXInfos (max_values: None, max_size: None, mode: Measured) Storage: XSTPool EnabledSynthetics (r:2 w:0) Proof Skipped: XSTPool EnabledSynthetics (max_values: None, max_size: None, mode: Measured) Storage: DEXAPI EnabledSourceTypes (r:1 w:0) Proof Skipped: DEXAPI EnabledSourceTypes (max_values: Some(1), max_size: None, mode: Measured) Storage: PoolXYK Properties (r:1 w:0) Proof Skipped: PoolXYK Properties (max_values: None, max_size: None, mode: Measured) Storage: TradingPair LockedLiquiditySources (r:1 w:0) Proof Skipped: TradingPair LockedLiquiditySources (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool FreeReservesAccountId (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool FreeReservesAccountId (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool PendingFreeReserves (r:1 w:1) Proof Skipped: MulticollateralBondingCurvePool PendingFreeReserves (max_values: Some(1), max_size: None, mode: Measured) Storage: Assets AssetInfos (r:1 w:0) Proof Skipped: Assets AssetInfos (max_values: None, max_size: None, mode: Measured) Storage: Permissions Permissions (r:2 w:0) Proof Skipped: Permissions Permissions (max_values: None, max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool CollateralReserves (r:0 w:1) Proof Skipped: MulticollateralBondingCurvePool CollateralReserves (max_values: None, max_size: None, mode: Measured)
source§fn can_exchange() -> Weight
fn can_exchange() -> Weight
Storage: MulticollateralBondingCurvePool EnabledTargets (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool EnabledTargets (max_values: Some(1), max_size: None, mode: Measured)
source§fn check_rewards() -> Weight
fn check_rewards() -> Weight
Storage: MulticollateralBondingCurvePool EnabledTargets (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool EnabledTargets (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool ReservesAcc (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool ReservesAcc (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool InitialPrice (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool InitialPrice (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool PriceChangeStep (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool PriceChangeStep (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool PriceChangeRate (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool PriceChangeRate (max_values: Some(1), max_size: None, mode: Measured) Storage: Tokens Accounts (r:1 w:0) Proof: Tokens Accounts (max_values: None, max_size: Some(136), added: 2611, mode: MaxEncodedLen) Storage: Assets AssetOwners (r:1 w:0) Proof Skipped: Assets AssetOwners (max_values: None, max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool ReferenceAssetId (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool ReferenceAssetId (max_values: Some(1), max_size: None, mode: Measured) Storage: PriceTools PriceInfos (r:2 w:0) Proof Skipped: PriceTools PriceInfos (max_values: None, max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool IncentivisedCurrenciesNum (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool IncentivisedCurrenciesNum (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool InitialPswapRewardsSupply (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool InitialPswapRewardsSupply (max_values: Some(1), max_size: None, mode: Measured) Storage: MulticollateralBondingCurvePool AssetsWithOptionalRewardMultiplier (r:1 w:0) Proof Skipped: MulticollateralBondingCurvePool AssetsWithOptionalRewardMultiplier (max_values: None, max_size: None, mode: Measured)