From 3d924ebb532b9928c6f803ea98aa577249d638dc Mon Sep 17 00:00:00 2001 From: Doug Hoyte Date: Tue, 29 Apr 2025 10:44:08 -0400 Subject: [PATCH] use safeTransfer when moving protocol fees, for non-compliant tokens --- src/libraries/FundsLib.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/FundsLib.sol b/src/libraries/FundsLib.sol index 8241501..91f9073 100644 --- a/src/libraries/FundsLib.sol +++ b/src/libraries/FundsLib.sol @@ -79,7 +79,7 @@ library FundsLib { uint256 protocolFeeAmount = feeAmount * p.protocolFee / 1e18; if (protocolFeeAmount != 0) { - IERC20(asset).transfer(p.protocolFeeRecipient, protocolFeeAmount); + IERC20(asset).safeTransfer(p.protocolFeeRecipient, protocolFeeAmount); amount -= protocolFeeAmount; feeAmount -= protocolFeeAmount; }