Skip to content

Commit fd90b8b

Browse files
happy clippy happy life
1 parent 6643be8 commit fd90b8b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

math/src/omnipool/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3929,7 +3929,7 @@ fn calculate_slip_fee_amount_should_return_max_when_rate_exceeds_cap() {
39293929
fn calculate_slip_fee_amount_should_return_proportional_when_rate_below_cap() {
39303930
// cum / denom = 1 / (10_000_000 + 1) ≈ 0 (well below 1% cap).
39313931
let hub_reserve = 10_000_000 * UNIT;
3932-
let cum = SignedBalance::Positive(1 * UNIT);
3932+
let cum = SignedBalance::Positive(UNIT);
39333933
let base = 1_000_000 * UNIT;
39343934
let max = Permill::from_percent(1);
39353935

@@ -4073,7 +4073,7 @@ fn calculate_buy_state_changes_should_not_charge_capped_slip_when_caps_do_not_bi
40734073
asset_out_delta: SignedBalance::zero(),
40744074
max_slip_fee: max,
40754075
};
4076-
let amount = 1 * UNIT;
4076+
let amount = UNIT;
40774077

40784078
let r = calculate_buy_state_changes(
40794079
&in_state,

0 commit comments

Comments
 (0)