Skip to content

Commit 3ed44df

Browse files
committed
fixed invariant test
1 parent b9c9f1f commit 3ed44df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/Solaxy.invariant.t.sol

+2-1
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,10 @@ contract SolaxyInvarantTest is Test {
8686
"Total handler holdings plus all fees collected should be strictly equal to the total token supply"
8787
);
8888

89-
assertEq(
89+
assertApproxEqAbs(
9090
SLX.totalAssets(),
9191
SLX.previewRedeem(SLX.totalSupply()),
92+
0.000000002e18,
9293
"Total reserve assets must be enough to cover the conversion of all existing tokens to less than a cent rounding error"
9394
);
9495
}

0 commit comments

Comments
 (0)