Skip to content

Commit

Permalink
fixes benchmark valuation for precies swap value
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderian committed Dec 5, 2024
1 parent 898287b commit 2304ab2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pallets/fee-lock/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ benchmarks! {
#[cfg(not(test))]
assert_ok!(<T as Config>::Xyk::create_pool(caller, valuating_token_id, pool_amount, token_id, pool_amount.saturating_mul(2u8.into())));

let value: BalanceOf<T> = 2000_u32.into();
let value: BalanceOf<T> = 1980_u32.into();
let mut valuation: Option<BalanceOf<T>> = None;
}: {valuation = FeeLock::<T>::get_swap_valuation_for_token(valuating_token_id, valuating_token_amount);}
verify{
Expand Down
2 changes: 1 addition & 1 deletion pallets/fee-lock/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl Valuate for MockValuateForNative {
_: Self::CurrencyId,
_: Self::Balance,
) -> Result<Self::Balance, DispatchError> {
Ok(2000_u128)
Ok(1980_u128)
}
}

Expand Down

0 comments on commit 2304ab2

Please sign in to comment.