Skip to content

Commit

Permalink
fix: remove check on token balance before investing
Browse files Browse the repository at this point in the history
  • Loading branch information
xenide committed Dec 6, 2024
1 parent 77ed736 commit 2506058
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/asset-management/EulerV2Manager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ contract EulerV2Manager is IAssetManager, Owned(msg.sender), RGT {
}

function _doInvest(IAssetManagedPair aPair, IERC20 aToken, IERC4626 aVault, uint256 aAmount) private {
require(aToken.balanceOf(address(this)) == aAmount, "AM: TOKEN_AMOUNT_MISMATCH");
SafeTransferLib.safeApprove(address(aToken), address(aVault), aAmount);

uint256 lSharesReceived = aVault.deposit(aAmount, address(this));
Expand Down

0 comments on commit 2506058

Please sign in to comment.