Skip to content

Commit

Permalink
fix: double feeAmount return
Browse files Browse the repository at this point in the history
  • Loading branch information
pociej authored and kamirr committed Jun 5, 2024
1 parent a466823 commit 574639c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnt2-contracts/src/contracts/LockPayment/LockPayment.sol
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ contract LockPayment is ILockPayment {
// customer cannot return funds before block_no
// sender can return funds at any time
require(msg.sender == deposit.spender);
require(GLM.transfer(funderFromId(id), deposit.amount + deposit.feeAmount), "return transfer failed");
require(GLM.transfer(funderFromId(id), deposit.amount ), "return transfer failed");
if (deposit.feeAmount > 0) {
require(GLM.transfer(deposit.spender, deposit.feeAmount), "fee transfer failed");
emit DepositFeeTransfer(id, deposit.spender, deposit.feeAmount);
Expand Down

0 comments on commit 574639c

Please sign in to comment.