From bcd532c462b100d036e20e6695dbdaec787a5086 Mon Sep 17 00:00:00 2001 From: Sam MacPherson Date: Tue, 19 Mar 2024 09:52:47 -0400 Subject: [PATCH] use approx eq instead and remove comments --- src/tests/integration/IntegrationBase.t.sol | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/tests/integration/IntegrationBase.t.sol b/src/tests/integration/IntegrationBase.t.sol index f4da6d40..eddeb423 100644 --- a/src/tests/integration/IntegrationBase.t.sol +++ b/src/tests/integration/IntegrationBase.t.sol @@ -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 { @@ -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 {