Skip to content

Commit 7c53fd9

Browse files
authored
Merge pull request #135 from Merit-Systems/shafu/TRST-R-1
TRST-R-1: Remove unnecessary fee cap logic for distribution
2 parents 7ca4bd1 + 194d84b commit 7c53fd9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Escrow.sol

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,6 @@ contract Escrow is Owned, IEscrow {
367367
distribution.status = DistributionStatus.Claimed;
368368

369369
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-
}
374370
uint netAmount = distribution.amount - feeAmount;
375371

376372
if (feeAmount > 0) distribution.token.safeTransfer(feeRecipient, feeAmount);

0 commit comments

Comments
 (0)