Skip to content

Commit

Permalink
enable the asserts again with the rounding taken into account
Browse files Browse the repository at this point in the history
  • Loading branch information
hexonaut committed Mar 19, 2024
1 parent 574965d commit 6b827d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tests/integration/IntegrationBase.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ 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);
//assertGe(vat.dai(address(vow)), prevDai); // As also probably accrues interest
// Adding 1e27 for rounding error earlier on
assertGe(vat.dai(address(vow)) + 1e27, prevDai); // As also probably accrues interest
}

function test_unwind_mcd_caged_skimmed() public {
Expand Down Expand Up @@ -458,7 +459,8 @@ 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);
//assertGe(vat.dai(address(vow)), prevDai); // As also probably accrues interest
// Adding 1e27 for rounding error earlier on
assertGe(vat.dai(address(vow)) + 1e27, prevDai); // As also probably accrues interest
}

function test_unwind_mcd_caged_wait_done() public {
Expand Down

0 comments on commit 6b827d0

Please sign in to comment.