Skip to content

Commit

Permalink
test: tighten tolerance of yield gain invariant
Browse files Browse the repository at this point in the history
It was accidentally left extremely loose.
  • Loading branch information
danielattilasimon committed Jul 21, 2024
1 parent ebf2a77 commit 4aaffe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/src/test/SPInvariants.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ contract SPInvariantsTest is BaseInvariantTest {

assertApproxEqAbsDecimal(stabilityPoolColl, claimableColl, 0.00001 ether, 18, "SP Coll !~ claimable Coll");
assertApproxEqAbsDecimal(stabilityPoolBold, claimableBold, 0.001 ether, 18, "SP BOLD !~ claimable BOLD");
assertApproxEqAbsDecimal(yieldGainsOwed, sumYieldGains, 50 ether, 18, "SP yieldGainsOwed !~= sum(yieldGain)");
assertApproxEqAbsDecimal(yieldGainsOwed, sumYieldGains, 0.001 ether, 18, "SP yieldGainsOwed !~= sum(yieldGain)");
}

function test_Issue_NoLossOfFundsAfterAnyTwoLiquidationsFollowingTinyP() external {
Expand Down

0 comments on commit 4aaffe7

Please sign in to comment.