Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mclyk committed Mar 21, 2024
1 parent 9b6126e commit b4f2aea
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 41 deletions.
6 changes: 0 additions & 6 deletions pallets/liquid-staking/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,6 @@ benchmarks! {
assert_eq!(CommissionRate::<T>::get(), COMMISSION_RATE);
}

update_incentive {
}: _(SystemOrigin::Root, BalanceOf::<T>::one())
verify {
assert_eq!(Incentive::<T>::get(), BalanceOf::<T>::one());
}

update_staking_ledger_cap {
}: _(SystemOrigin::Root, STAKING_LEDGER_CAP)
verify {
Expand Down
12 changes: 0 additions & 12 deletions pallets/liquid-staking/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ pub trait WeightInfo {
fn cancel_unstake() -> Weight;
fn update_commission_rate() -> Weight;
fn fast_match_unstake(n: u32, ) -> Weight;
fn update_incentive() -> Weight;
}

/// Weights for pallet_liquid_staking using the Substrate node and recommended hardware.
Expand Down Expand Up @@ -383,11 +382,6 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
.saturating_add(T::DbWeight::get().writes(4 as u64))
.saturating_add(T::DbWeight::get().writes((4 as u64).saturating_mul(n as u64)))
}
fn update_incentive() -> Weight {
Weight::from_ref_time(40_612_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
}

// For backwards compatibility and tests
Expand Down Expand Up @@ -702,10 +696,4 @@ impl WeightInfo for () {
.saturating_add(RocksDbWeight::get().writes(4 as u64))
.saturating_add(RocksDbWeight::get().writes((4 as u64).saturating_mul(n as u64)))
}

fn update_incentive() -> Weight {
Weight::from_ref_time(40_612_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
}
6 changes: 0 additions & 6 deletions runtime/heiko/src/weights/pallet_liquid_staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,6 @@ impl<T: frame_system::Config> pallet_liquid_staking::WeightInfo for WeightInfo<T
Weight::from_ref_time(26_265_000)
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: LiquidStaking Incentive (r:0 w:1)
fn update_incentive() -> Weight {
// Minimum execution time: 25_703 nanoseconds.
Weight::from_ref_time(26_527_000)
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: LiquidStaking StakingLedgerCap (r:1 w:1)
fn update_staking_ledger_cap() -> Weight {
// Minimum execution time: 29_266 nanoseconds.
Expand Down
6 changes: 0 additions & 6 deletions runtime/kerria/src/weights/pallet_liquid_staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,4 @@ impl<T: frame_system::Config> pallet_liquid_staking::WeightInfo for WeightInfo<T
.saturating_add(T::DbWeight::get().writes(4 as u64))
.saturating_add(T::DbWeight::get().writes((4 as u64).saturating_mul(n as u64)))
}

fn update_incentive() -> Weight {
Weight::from_ref_time(39_392_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
}
6 changes: 0 additions & 6 deletions runtime/parallel/src/weights/pallet_liquid_staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,6 @@ impl<T: frame_system::Config> pallet_liquid_staking::WeightInfo for WeightInfo<T
Weight::from_ref_time(25_664_000)
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: LiquidStaking Incentive (r:0 w:1)
fn update_incentive() -> Weight {
// Minimum execution time: 25_110 nanoseconds.
Weight::from_ref_time(25_596_000)
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: LiquidStaking StakingLedgerCap (r:1 w:1)
fn update_staking_ledger_cap() -> Weight {
// Minimum execution time: 28_073 nanoseconds.
Expand Down
5 changes: 0 additions & 5 deletions runtime/vanilla/src/weights/pallet_liquid_staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,4 @@ impl<T: frame_system::Config> pallet_liquid_staking::WeightInfo for WeightInfo<T
.saturating_add(T::DbWeight::get().writes(4 as u64))
.saturating_add(T::DbWeight::get().writes((4 as u64).saturating_mul(n as u64)))
}
fn update_incentive() -> Weight {
Weight::from_ref_time(39_392_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
}

0 comments on commit b4f2aea

Please sign in to comment.