Skip to content

Commit

Permalink
Fix most pallet-investments benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
NunoAlexandre committed Oct 25, 2023
1 parent 797dedf commit 622d26a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pallets/investments/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ mod benchmarks {
let investment_id = Helper::<T>::get_investment_id();
let currency_id = T::Accountant::info(investment_id)?.payment_currency();

T::Tokens::mint_into(currency_id, &caller, 1u32.into())?;
T::Tokens::mint_into(currency_id, &caller, 100_000_000u32.into())?;

#[extrinsic_call]
update_invest_order(RawOrigin::Signed(caller), investment_id, 1u32.into());
Expand All @@ -78,7 +78,7 @@ mod benchmarks {
let investment_id = Helper::<T>::get_investment_id();
let currency_id: CurrencyOf<T> = T::Accountant::info(investment_id)?.id().into();

T::Tokens::mint_into(currency_id, &caller, 1u32.into())?;
T::Tokens::mint_into(currency_id, &caller, 100_000_000_u32.into())?;

#[extrinsic_call]
update_redeem_order(RawOrigin::Signed(caller), investment_id, 1u32.into());
Expand All @@ -94,7 +94,7 @@ mod benchmarks {
.unwrap()
.payment_currency();

T::Tokens::mint_into(currency_id, &caller, 1u32.into())?;
T::Tokens::mint_into(currency_id, &caller, 100_000_000u32.into())?;

Pallet::<T>::update_investment(&caller, investment_id, 1u32.into())?;
for _ in 0..n {
Expand All @@ -120,7 +120,7 @@ mod benchmarks {
let investment_id = Helper::<T>::get_investment_id();
let currency_id: CurrencyOf<T> = T::Accountant::info(investment_id)?.id().into();

T::Tokens::mint_into(currency_id, &caller, 1u32.into())?;
T::Tokens::mint_into(currency_id, &caller, 100_000_000u32.into())?;

Pallet::<T>::update_redemption(&caller, investment_id, 1u32.into())?;
for _ in 0..n {
Expand Down

0 comments on commit 622d26a

Please sign in to comment.