Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
hqwangningbo committed Jun 20, 2024
1 parent 72c7b67 commit 64668e9
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions pallets/slp/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -710,26 +710,6 @@ mod benchmarks {
Ok(())
}

#[benchmark]
fn refund_currency_due_unbond() -> Result<(), BenchmarkError> {
let origin = <T as Config>::ControlOrigin::try_successful_origin()
.map_err(|_| BenchmarkError::Weightless)?;
init_ongoing_time::<T>(origin.clone());

let (_, exit_account) = <T as Config>::VtokenMinting::get_entrance_and_exit_accounts();
orml_tokens::Pallet::<T>::deposit(
KSM,
&exit_account,
<T as orml_tokens::Config>::Balance::saturated_from(1_000_000_000_000u128),
)
.unwrap();

#[extrinsic_call]
_(origin as <T as frame_system::Config>::RuntimeOrigin, KSM);

Ok(())
}

#[benchmark]
fn supplement_fee_reserve() -> Result<(), BenchmarkError> {
let origin = <T as Config>::ControlOrigin::try_successful_origin()
Expand Down

0 comments on commit 64668e9

Please sign in to comment.