Skip to content

Commit 1bc3092

Browse files
committed
Adjust fuzzy epsilon
1 parent c9aedf6 commit 1bc3092

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pallets/swap/src/pallet/reserve_weights.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,9 @@ mod tests {
474474
if eps > 100.0 {
475475
eps = 100.0;
476476
}
477+
if eps < 1.0 {
478+
eps = 1.0;
479+
}
477480

478481
assert!(
479482
(actual - dy_expected).abs() <= eps,

0 commit comments

Comments
 (0)