Skip to content

Commit

Permalink
fixed faulty error
Browse files Browse the repository at this point in the history
  • Loading branch information
iChristwin committed Apr 7, 2024
1 parent c00ec4f commit f5d891f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/Solaxy.invariant.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,9 @@ contract SolaxyInvarantTest is Test {
"Total user holdings plus all fees collected should be strictly equal to the total token supply"
);

assertApproxEqAbs(
SLX.totalAssets(),
assertGe(
SLX.totalAssets() + 1 wei,
SLX.convertToAssets(SLX.totalSupply()),
1,
"Total reserve assets must be enough to cover the converstion of all existing tokens with a margin of error of only 1e-18 sDAI"
);
}
Expand Down

0 comments on commit f5d891f

Please sign in to comment.