Skip to content

[ETHEREUM-CONTRACTS] implemented permit (eip-2612)#2057

Merged
d10r merged 7 commits intodevfrom
add_permit
Mar 25, 2025
Merged

[ETHEREUM-CONTRACTS] implemented permit (eip-2612)#2057
d10r merged 7 commits intodevfrom
add_permit

Conversation

@d10r
Copy link
Collaborator

@d10r d10r commented Mar 11, 2025

Open questions:

  • is it a good idea to introduce OZ v5 for this? If so, we need to increase min solc version to 0.8.20. no, we don't
  • shall the functionality be extracted to a dedicated abstract contract, e.g. ERC20Permit.sol?
  • is it worth hashing the domain separator (as done by OZ)? Currently not done. I say no - the keccak opcode is 30 gas per word, so not much to squeeze out with optimization.
  • shall the name for the signing domain be the token name? Currently it's just "SuperToken" for all. Made it the token name, as OZ does (and USDC too)
  • TODO: add eip-5267 (eip712Domain()). done
  • Is it ok to have the test in contract SuperTokenIntegrationTest ?

@github-actions
Copy link

github-actions bot commented Mar 11, 2025

Changelog Reminder

Reminder to update the CHANGELOG.md for any of the modified packages in this PR.

  • CHANGELOG.md modified
  • Double check before merge

@d10r d10r marked this pull request as ready for review March 12, 2025 09:17
@d10r d10r requested a review from hellwolf as a code owner March 12, 2025 09:17
@d10r d10r changed the title [ETHEREUM_CONTRACTS] implemented permit (eip-2612) [ETHEREUM-CONTRACTS] implemented permit (eip-2612) Mar 12, 2025
Copy link
Contributor

@hellwolf hellwolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lfg

Copy link
Contributor

@hellwolf hellwolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test in testnet first.

@d10r d10r merged commit 4e8142f into dev Mar 25, 2025
22 checks passed
@d10r d10r deleted the add_permit branch March 25, 2025 10:48
@github-actions
Copy link

XKCD Comic Relif

Link: https://xkcd.com/2057
https://xkcd.com/2057

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants