From 9b3e12c87d8d00b55dce167749d95baa25448ad3 Mon Sep 17 00:00:00 2001 From: Akshat Mittal Date: Tue, 23 Apr 2024 04:54:51 +0530 Subject: [PATCH] Safe Transfer --- contracts/rewards/GenericMultiRewardsVault.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/rewards/GenericMultiRewardsVault.sol b/contracts/rewards/GenericMultiRewardsVault.sol index f3ef524..b384ea6 100644 --- a/contracts/rewards/GenericMultiRewardsVault.sol +++ b/contracts/rewards/GenericMultiRewardsVault.sol @@ -73,7 +73,7 @@ contract GenericMultiRewardsVault is ERC4626, Ownable { } accruedRewards[user][_rewardTokens[i]] = 0; - _rewardTokens[i].transfer(user, rewardAmount); + SafeERC20.safeTransfer(_rewardTokens[i], user, rewardAmount); emit Events.RewardsClaimed(user, _rewardTokens[i], rewardAmount); }