Skip to content

Commit b45ee01

Browse files
authored
Merge pull request #50 from yieldnest/chad/sc-319/fix-broken-tests
fix: Broken LSD tests
2 parents bb9be23 + 76d3c80 commit b45ee01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/foundry/integration/ynLSD.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ contract ynLSDAssetTest is IntegrationBaseTest {
5151
(bool success, ) = chainAddresses.lsd.STETH_ADDRESS.call{value: amount + 1}("");
5252
require(success, "ETH transfer failed");
5353
uint256 balance = stETH.balanceOf(address(this));
54-
assertEq(balance, amount, "Amount not received");
54+
assertEq(compareWithThreshold(balance, amount, 1), true, "Amount not received");
5555

5656
uint depositAmount = 15 ether;
5757

@@ -71,7 +71,7 @@ contract ynLSDAssetTest is IntegrationBaseTest {
7171
(bool success, ) = chainAddresses.lsd.STETH_ADDRESS.call{value: amount + 1}("");
7272
require(success, "ETH transfer failed");
7373
uint256 balance = stETH.balanceOf(address(this));
74-
assertEq(balance, amount, "Amount not received");
74+
assertEq(compareWithThreshold(balance, amount, 1), true, "Amount not received");
7575

7676
stETH.approve(address(ynlsd), 32 ether);
7777
uint256 depositAmountOne = 5 ether;

0 commit comments

Comments
 (0)