From 30ed01abdf9e5b5be23bcb03a15e49366580c728 Mon Sep 17 00:00:00 2001 From: danoctavian Date: Mon, 25 Mar 2024 10:58:38 +0200 Subject: [PATCH] fix wei difference in ynLSD test --- test/foundry/integration/ynLSD.t.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/foundry/integration/ynLSD.t.sol b/test/foundry/integration/ynLSD.t.sol index caa4dd866..d57a15deb 100644 --- a/test/foundry/integration/ynLSD.t.sol +++ b/test/foundry/integration/ynLSD.t.sol @@ -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 {