Skip to content

Commit

Permalink
Fix fourth part of Glen comments
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Jul 31, 2024
1 parent 64ae4d1 commit 4c58070
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gnt2-contracts/.waffle-LockPayment.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"compilerOptions": {
"optimizer": {
"enabled": true,
"runs": 5000
"runs": 2000
}
}
}
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 @@ -114,7 +114,7 @@ contract LockPayment is ILockPayment {

// createDeposit - Customer locks funds for usage by spender
//
// id - unique id (build from Funder address and nonce)
// nonce - used to build unique id (from Funder address and nonce)
// spender - the address that is allowed to spend the funds regardless of time
// amount - amount of GLM tokens to lock
// flatFeeAmount - amount of GLM tokens given to spender (non-refundable). Fee is claimed by spender when called payoutSingle or payoutMultiple first time.
Expand Down Expand Up @@ -236,7 +236,7 @@ contract LockPayment is ILockPayment {
}

function getValidateDepositSignature() external pure returns (string memory) {
// example implementation
// this signature may be different if other compatible fee scheme is deployed
return '[{"type": "uint256", "name": "id"}, {"type": "uint128", "name": "flatFeeAmount"}]';
}
}

0 comments on commit 4c58070

Please sign in to comment.