We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7ca4bd1 + 194d84b commit 7c53fd9Copy full SHA for 7c53fd9
src/Escrow.sol
@@ -367,10 +367,6 @@ contract Escrow is Owned, IEscrow {
367
distribution.status = DistributionStatus.Claimed;
368
369
uint feeAmount = distribution.amount.mulDivUp(distribution.fee, 10_000);
370
- // Cap fee to ensure recipient gets at least 1 wei
371
- if (feeAmount >= distribution.amount) {
372
- feeAmount = distribution.amount - 1;
373
- }
374
uint netAmount = distribution.amount - feeAmount;
375
376
if (feeAmount > 0) distribution.token.safeTransfer(feeRecipient, feeAmount);
0 commit comments