diff --git a/packages/contracts/contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol b/packages/contracts/contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol index 5baef9b9..9ce95352 100644 --- a/packages/contracts/contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol +++ b/packages/contracts/contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol @@ -704,11 +704,13 @@ contract LenderCommitmentGroup_Smart is address protocolFeeRecipient = ITellerV2(address(TELLER_V2)).getProtocolFeeRecipient(); - IERC20(principalToken).safeTransferFrom( - msg.sender, - address(protocolFeeRecipient), - liquidationProtocolFee - ); + if (liquidationProtocolFee > 0) { + IERC20(principalToken).safeTransferFrom( + msg.sender, + address(protocolFeeRecipient), + liquidationProtocolFee + ); + } totalPrincipalTokensRepaid += amountDue; tokenDifferenceFromLiquidations += int256(tokensToTakeFromSender - liquidationProtocolFee );