Skip to content

Commit 3d924eb

Browse files
committed
use safeTransfer when moving protocol fees, for non-compliant tokens
1 parent e093dee commit 3d924eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/FundsLib.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ library FundsLib {
7979
uint256 protocolFeeAmount = feeAmount * p.protocolFee / 1e18;
8080

8181
if (protocolFeeAmount != 0) {
82-
IERC20(asset).transfer(p.protocolFeeRecipient, protocolFeeAmount);
82+
IERC20(asset).safeTransfer(p.protocolFeeRecipient, protocolFeeAmount);
8383
amount -= protocolFeeAmount;
8484
feeAmount -= protocolFeeAmount;
8585
}

0 commit comments

Comments
 (0)