Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Aug 2, 2024
1 parent e91a53b commit 450cfbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnt2-contracts/src/contracts/LockPayment/LockPayment.sol
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ contract LockPayment is ILockPayment {
// sender can return funds at any time
require(msg.sender == deposit.spender);
emit DepositClosed(id, deposit.spender);
require(GLM.transfer(funderFromId(id), deposit.amount ), "return transfer failed");
require(GLM.transfer(funderFromId(id), deposit.amount), "return transfer failed");
if (deposit.feeAmount > 0) {
emit DepositFeeTransfer(id, deposit.spender, deposit.feeAmount);
require(GLM.transfer(deposit.spender, deposit.feeAmount), "fee transfer failed");
deposit.feeAmount = 0;
deposits[id].feeAmount = 0;
}
deposits[id].amount = 0;
//leave this in deposit to prevent recreating deposit with the same id
Expand Down

0 comments on commit 450cfbc

Please sign in to comment.