diff --git a/src/StakingNodesManager.sol b/src/StakingNodesManager.sol index aaa382e73..e37e2f4df 100644 --- a/src/StakingNodesManager.sol +++ b/src/StakingNodesManager.sol @@ -86,7 +86,7 @@ contract StakingNodesManager is UpgradeableBeacon public upgradeableBeacon; IynETH public ynETH; - IRewardsDistributor rewardsDistributor; + IRewardsDistributor public rewardsDistributor; Validator[] public validators; diff --git a/test/foundry/integration/ynLSD.t.sol b/test/foundry/integration/ynLSD.t.sol index 66e472e8d..991e2690c 100644 --- a/test/foundry/integration/ynLSD.t.sol +++ b/test/foundry/integration/ynLSD.t.sol @@ -347,7 +347,7 @@ contract ynLSDAdminTest is IntegrationBaseTest { function testRetrieveAssetsSuccess() public { IERC20 asset = IERC20(chainAddresses.lsd.STETH_ADDRESS); - uint256 amount = 64; + uint256 amount = 64 ether; vm.prank(actors.STAKING_NODE_CREATOR); ynlsd.createLSDStakingNode(); @@ -358,7 +358,7 @@ contract ynLSDAdminTest is IntegrationBaseTest { (bool success, ) = chainAddresses.lsd.STETH_ADDRESS.call{value: amount + 1}(""); require(success, "ETH transfer failed"); uint256 balance = asset.balanceOf(address(this)); - assertEq(balance, amount, "Amount not received"); + assertEq(compareWithThreshold(balance, amount, 1), true, "Amount not received"); asset.approve(address(ynlsd), amount); ynlsd.deposit(asset, amount, address(this));