Skip to content

Commit

Permalink
fixed benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
mrq1911 committed Dec 2, 2021
1 parent 04a5f24 commit 884e911
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions runtime/basilisk/src/benchmarking/vesting.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{AccountId, AssetId, Balance, NativeAssetId, Runtime};
use crate::{BlockNumber, Currencies, MaxVestingSchedules, MinVestedTransfer, System, Vesting};
use crate::{BlockNumber, Currencies, MaxVestingSchedules, System, Vesting};

use super::BSX;

Expand All @@ -17,6 +17,8 @@ use orml_traits::MultiCurrency;
use orml_traits::MultiCurrencyExtended;
use orml_vesting::VestingSchedule;

use primitives::constants::currency::NATIVE_EXISTENTIAL_DEPOSIT;

use sp_runtime::traits::{SaturatedConversion, StaticLookup};

pub type Schedule = VestingSchedule<BlockNumber, Balance>;
Expand Down Expand Up @@ -49,7 +51,7 @@ runtime_benchmarks! {
start: 0,
period: 2,
period_count: 3,
per_period: MinVestedTransfer::get(),
per_period: NATIVE_EXISTENTIAL_DEPOSIT,
};

let from: AccountId = get_vesting_account();
Expand All @@ -72,7 +74,7 @@ runtime_benchmarks! {
start: 0,
period: 2,
period_count: 3,
per_period: MinVestedTransfer::get(),
per_period: NATIVE_EXISTENTIAL_DEPOSIT,
};

let from: AccountId = get_vesting_account();
Expand Down Expand Up @@ -101,7 +103,7 @@ runtime_benchmarks! {
start: 0,
period: 2,
period_count: 3,
per_period: MinVestedTransfer::get(),
per_period: NATIVE_EXISTENTIAL_DEPOSIT,
};

let to: AccountId = account("to", 0, SEED);
Expand Down

0 comments on commit 884e911

Please sign in to comment.