We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9f8d68b + 3d924eb commit 17b085dCopy full SHA for 17b085d
src/libraries/FundsLib.sol
@@ -79,7 +79,7 @@ library FundsLib {
79
uint256 protocolFeeAmount = feeAmount * p.protocolFee / 1e18;
80
81
if (protocolFeeAmount != 0) {
82
- IERC20(asset).transfer(p.protocolFeeRecipient, protocolFeeAmount);
+ IERC20(asset).safeTransfer(p.protocolFeeRecipient, protocolFeeAmount);
83
amount -= protocolFeeAmount;
84
feeAmount -= protocolFeeAmount;
85
}
0 commit comments