From f73c31984dbdc26f802c6793629dcee3f5037f19 Mon Sep 17 00:00:00 2001 From: wangjj9219 <183318287@qq.com> Date: Wed, 23 Feb 2022 11:56:20 +0800 Subject: [PATCH] fix benchmarking --- runtime/mandala/src/benchmarking/honzon.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/mandala/src/benchmarking/honzon.rs b/runtime/mandala/src/benchmarking/honzon.rs index c5d0c37d79..cd8dfc4e51 100644 --- a/runtime/mandala/src/benchmarking/honzon.rs +++ b/runtime/mandala/src/benchmarking/honzon.rs @@ -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(¤cy_id)); + set_balance(currency_id, &caller, collateral_amount * 2); // feed price feed_price(vec![(currency_id, collateral_price)])?; @@ -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(¤cy_id)); + set_balance(currency_id, &sender, collateral_amount * 2); set_balance(NATIVE, &sender, DepositPerAuthorization::get()); // feed price