Skip to content

Commit

Permalink
Merge pull request #50 from yieldnest/chad/sc-319/fix-broken-tests
Browse files Browse the repository at this point in the history
fix: Broken LSD tests
  • Loading branch information
danoctavian authored Mar 22, 2024
2 parents bb9be23 + 76d3c80 commit b45ee01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/foundry/integration/ynLSD.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ contract ynLSDAssetTest is IntegrationBaseTest {
(bool success, ) = chainAddresses.lsd.STETH_ADDRESS.call{value: amount + 1}("");
require(success, "ETH transfer failed");
uint256 balance = stETH.balanceOf(address(this));
assertEq(balance, amount, "Amount not received");
assertEq(compareWithThreshold(balance, amount, 1), true, "Amount not received");

uint depositAmount = 15 ether;

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

stETH.approve(address(ynlsd), 32 ether);
uint256 depositAmountOne = 5 ether;
Expand Down

0 comments on commit b45ee01

Please sign in to comment.