Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
v9n committed Sep 30, 2023
1 parent 4d7bb7f commit 1395048
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pallets/automation-price/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ benchmarks! {
// our task look up will always be O(1) for time
let mut task_ids: Vec<TaskId> = vec![];
for i in 1..100 {
// Fund the account so we can schedule task
let account_min = T::Currency::minimum_balance().saturating_mul(ED_MULTIPLIER.into());
T::Currency::deposit_creating(&creator, account_min.saturating_mul(DEPOSIT_MULTIPLIER.into()));
direct_task_schedule::<T>(creator.clone(), format!("{:?}", i).as_bytes().to_vec(), i, "gt".as_bytes().to_vec(), i, vec![100, 200, (i % 256) as u8]);
Expand Down
2 changes: 1 addition & 1 deletion pallets/automation-price/src/fees.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ where
let execution_fee_amount = match action.clone() {
Action::XCMP { execution_fee, instruction_sequence, .. }
if instruction_sequence == InstructionSequence::PayThroughSovereignAccount =>
execution_fee.amount.saturating_mul(1_u32.into()).saturated_into(),
execution_fee.amount.saturated_into(),
_ => 0u32.saturated_into(),
};

Expand Down

0 comments on commit 1395048

Please sign in to comment.