Skip to content

Commit f620b56

Browse files
committed
setFeeOnFund before setFeeOnClaim
1 parent 9728247 commit f620b56

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Escrow.sol

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -494,24 +494,24 @@ contract Escrow is Owned, IEscrow {
494494
emit WhitelistedToken(token);
495495
}
496496

497-
function setFeeOnClaim(uint newFee)
497+
function setFeeOnFund(uint newFee)
498498
external
499499
onlyOwner
500500
{
501501
require(newFee <= MAX_FEE, Errors.INVALID_FEE);
502-
uint oldFee = feeOnClaim;
503-
feeOnClaim = newFee;
504-
emit FeeOnClaimSet(oldFee, newFee);
502+
uint oldFee = feeOnFund;
503+
feeOnFund = newFee;
504+
emit FeeOnFundSet(oldFee, newFee);
505505
}
506506

507-
function setFeeOnFund(uint newFee)
507+
function setFeeOnClaim(uint newFee)
508508
external
509509
onlyOwner
510510
{
511511
require(newFee <= MAX_FEE, Errors.INVALID_FEE);
512-
uint oldFee = feeOnFund;
513-
feeOnFund = newFee;
514-
emit FeeOnFundSet(oldFee, newFee);
512+
uint oldFee = feeOnClaim;
513+
feeOnClaim = newFee;
514+
emit FeeOnClaimSet(oldFee, newFee);
515515
}
516516

517517
function setFeeRecipient(address newRec)

0 commit comments

Comments
 (0)