From 9ce5e5727d5dab23bd0c2ae94f3b5f23d33cc7fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alp=20G=C3=BCneysel?= Date: Tue, 7 Jan 2025 16:27:58 -0500 Subject: [PATCH] fix buyvaulttoken (#149) --- nest/src/AggregateToken.sol | 6 ------ 1 file changed, 6 deletions(-) diff --git a/nest/src/AggregateToken.sol b/nest/src/AggregateToken.sol index 88fd953..dbb802b 100644 --- a/nest/src/AggregateToken.sol +++ b/nest/src/AggregateToken.sol @@ -381,12 +381,6 @@ contract AggregateToken is ComponentToken, IAggregateToken, ERC1155Holder { revert AssetNotSupported(); } - // Transfer assets from sender to this contract - SafeERC20.safeTransferFrom(IERC20(token), msg.sender, address(this), assets); - - // Approve teller to spend assets - SafeERC20.forceApprove(IERC20(token), address(teller), assets); - // Deposit through teller shares = teller.deposit( IERC20(token), // depositAsset