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.
1 parent 07ed9b2 commit 3b693c4Copy full SHA for 3b693c4
src/libraries/SwapLib.sol
@@ -167,7 +167,7 @@ library SwapLib {
167
168
// Slice off separate LP fee recipient
169
170
- if (ctx.sParams.feeRecipient != address(0)) {
+ if (ctx.sParams.feeRecipient != address(0) && feeAmount != 0) {
171
IERC20(assetInput).safeTransfer(ctx.sParams.feeRecipient, feeAmount);
172
173
amount -= feeAmount;
0 commit comments