Skip to content

Commit

Permalink
use approx eq instead and remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hexonaut committed Mar 19, 2024
1 parent 6b827d0 commit bcd532c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/tests/integration/IntegrationBase.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,7 @@ abstract contract IntegrationBaseTest is DssTest {
vow.heal(_min(vat.sin(address(vow)), vat.dai(address(vow))));
assertRoundingEq(vat.gem(ilk, address(end)), 0);
assertEq(vat.sin(address(vow)), 0);
// Adding 1e27 for rounding error earlier on
assertGe(vat.dai(address(vow)) + 1e27, prevDai); // As also probably accrues interest
assertApproxEqAbs(vat.dai(address(vow)), prevDai, 1e27);
}

function test_unwind_mcd_caged_skimmed() public {
Expand Down Expand Up @@ -459,8 +458,7 @@ abstract contract IntegrationBaseTest is DssTest {
vow.heal(_min(vat.sin(address(vow)), vat.dai(address(vow))));
assertRoundingEq(vat.gem(ilk, address(end)), 0);
assertEq(vat.sin(address(vow)), 0);
// Adding 1e27 for rounding error earlier on
assertGe(vat.dai(address(vow)) + 1e27, prevDai); // As also probably accrues interest
assertApproxEqAbs(vat.dai(address(vow)), prevDai, 1e27);
}

function test_unwind_mcd_caged_wait_done() public {
Expand Down

0 comments on commit bcd532c

Please sign in to comment.