Skip to content

Commit

Permalink
fix benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjj9219 committed Feb 23, 2022
1 parent 3a6cd6f commit f73c319
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/mandala/src/benchmarking/honzon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ runtime_benchmarks! {
let collateral_amount = Price::saturating_from_rational(dollar(currency_id), dollar(STABLECOIN)).saturating_mul_int(collateral_value);

// set balance
set_balance(currency_id, &caller, collateral_amount + ExistentialDeposits::get(&currency_id));
set_balance(currency_id, &caller, collateral_amount * 2);

// feed price
feed_price(vec![(currency_id, collateral_price)])?;
Expand Down Expand Up @@ -166,7 +166,7 @@ runtime_benchmarks! {
let collateral_amount = Price::saturating_from_rational(dollar(currency_id), dollar(STABLECOIN)).saturating_mul_int(collateral_value);

// set balance
set_balance(currency_id, &sender, collateral_amount + ExistentialDeposits::get(&currency_id));
set_balance(currency_id, &sender, collateral_amount * 2);
set_balance(NATIVE, &sender, DepositPerAuthorization::get());

// feed price
Expand Down

0 comments on commit f73c319

Please sign in to comment.