@@ -56,7 +56,7 @@ contract ynLSDAssetTest is IntegrationBaseTest {
56
56
(bool success , ) = chainAddresses.lsd.STETH_ADDRESS.call {value: amount + 1 }("" );
57
57
require (success, "ETH transfer failed " );
58
58
uint256 balance = stETH.balanceOf (address (this ));
59
- assertEq (balance, amount, "Amount not received " );
59
+ assertEq (compareWithThreshold ( balance, amount, 1 ), true , "Amount not received " );
60
60
61
61
uint depositAmount = 15 ether ;
62
62
@@ -76,7 +76,7 @@ contract ynLSDAssetTest is IntegrationBaseTest {
76
76
(bool success , ) = chainAddresses.lsd.STETH_ADDRESS.call {value: amount + 1 }("" );
77
77
require (success, "ETH transfer failed " );
78
78
uint256 balance = stETH.balanceOf (address (this ));
79
- assertEq (balance, amount, "Amount not received " );
79
+ assertEq (compareWithThreshold ( balance, amount, 1 ), true , "Amount not received " );
80
80
81
81
stETH.approve (address (ynlsd), 32 ether);
82
82
uint256 depositAmountOne = 5 ether ;
@@ -326,7 +326,7 @@ contract ynLSDAdminTest is IntegrationBaseTest {
326
326
327
327
function testRetrieveAssetsSuccess () public {
328
328
IERC20 asset = IERC20 (chainAddresses.lsd.STETH_ADDRESS);
329
- uint256 amount = 64 ;
329
+ uint256 amount = 64 ether ;
330
330
331
331
vm.prank (actors.STAKING_NODE_CREATOR);
332
332
ynlsd.createLSDStakingNode ();
@@ -337,7 +337,7 @@ contract ynLSDAdminTest is IntegrationBaseTest {
337
337
(bool success , ) = chainAddresses.lsd.STETH_ADDRESS.call {value: amount + 1 }("" );
338
338
require (success, "ETH transfer failed " );
339
339
uint256 balance = asset.balanceOf (address (this ));
340
- assertEq (balance, amount, "Amount not received " );
340
+ assertEq (compareWithThreshold ( balance, amount, 1 ), true , "Amount not received " );
341
341
342
342
asset.approve (address (ynlsd), amount);
343
343
ynlsd.deposit (asset, amount, address (this ));
0 commit comments