File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3929,7 +3929,7 @@ fn calculate_slip_fee_amount_should_return_max_when_rate_exceeds_cap() {
39293929fn 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,
You can’t perform that action at this time.
0 commit comments