Skip to content

Commit

Permalink
Add missing isSupported check to bulkDeposit in TellerWithMultiAs…
Browse files Browse the repository at this point in the history
…setSupport
  • Loading branch information
crispymangoes committed Apr 3, 2024
1 parent d1b4b52 commit 546ff96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/base/Roles/TellerWithMultiAssetSupport.sol
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ contract TellerWithMultiAssetSupport is Auth, BeforeTransferHook, ReentrancyGuar
nonReentrant
returns (uint256 shares)
{
if (!isSupported[depositAsset]) revert TellerWithMultiAssetSupport__AssetNotSupported();
shares = _erc20Deposit(depositAsset, depositAmount, minimumMint, to);
emit BulkDeposit(address(depositAsset), depositAmount);
}
Expand Down

0 comments on commit 546ff96

Please sign in to comment.