Skip to content

Commit

Permalink
fix wei difference in ynLSD test
Browse files Browse the repository at this point in the history
  • Loading branch information
danoctavian committed Mar 25, 2024
1 parent faaff97 commit 5eb17da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/foundry/integration/ynLSD.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ contract ynLSDAssetTest is IntegrationBaseTest {

uint256 expectedDepositPreview = amount * stethPrice / 1e18;
uint256 previewDeposit = ynlsd.previewDeposit(asset, amount);
assertEq(previewDeposit, expectedDepositPreview, "Preview deposit does not match expected value");
assertTrue(compareWithThreshold(previewDeposit, expectedDepositPreview, 1), "Preview deposit does not match expected value within threshold");
}

function testConvertToETH() public {
Expand Down

0 comments on commit 5eb17da

Please sign in to comment.