Skip to content

Commit

Permalink
fix buyvaulttoken (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
ungaro authored Jan 7, 2025
1 parent 173d602 commit 9ce5e57
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions nest/src/AggregateToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ce5e57

Please sign in to comment.