Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: implement the ERC2612 (Permit) extension for StETH #486

Merged
merged 8 commits into from
Jan 16, 2023

Conversation

TheDZhon
Copy link
Contributor

Resolves #440.

@TheDZhon TheDZhon force-pushed the feature/steth-permit branch from 0f443dc to 85ee91c Compare January 11, 2023 16:35
Copy link
Member

@folkyatina folkyatina left a comment

Choose a reason for hiding this comment

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

Isn't it better to move the whole IERC2612 implementation to the separate 0.8.9 subcontract. It will allow to use more OpenZeppelin code without any modification.

It will be more concise and clear, and substantially less code to review and less calls to external contract per permit.

Am I missing something?

@arwer13 arwer13 self-requested a review January 13, 2023 13:06
Copy link
Contributor

@arwer13 arwer13 left a comment

Choose a reason for hiding this comment

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

🔥
I guess it's time to merge before the mass-review begins. LGTM to merge, but needs a deeper and wider look in the future.

@TheDZhon TheDZhon force-pushed the feature/steth-permit branch from 7e6ce20 to 4015478 Compare January 14, 2023 13:23
@TheDZhon TheDZhon marked this pull request as ready for review January 14, 2023 13:23
@TheDZhon TheDZhon requested a review from folkyatina January 14, 2023 13:23
@TheDZhon
Copy link
Contributor Author

@folkyatina please have a look and decide whether we can put forward this one to the trunk or polish it up 👍

Copy link
Member

@folkyatina folkyatina left a comment

Choose a reason for hiding this comment

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

LGTM. But there is some points to think about.

const digest = web3.utils.keccak256(
'0x1901' +
strip0x(domainSeparator) +
strip0x(web3.utils.keccak256(web3.eth.abi.encodeParameters(['bytes32', ...types], [typeHash, ...parameters])))
Copy link
Member

Choose a reason for hiding this comment

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

Thinking about converging to using ethers.js library for Etherium everywhere in tests. Just a topic to think about, not a requirement.

@TheDZhon TheDZhon merged commit 3135d15 into feature/shapella-upgrade Jan 16, 2023
@TheDZhon TheDZhon deleted the feature/steth-permit branch January 16, 2023 12:57
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.

3 participants