Skip to content

Make ERC20Votes independent from ERC20Permit #3160

Closed
@k06a

Description

@k06a

🧐 Motivation

We need a more clear and independent structure of ERC20 extensions.

📝 Details

Now ERC20Votes inherits ERC20Permit to use EIP712 inheritance and moreover to abuse its permit nonces. I believe we can remove the ERC20Permit constructor to keep it abstract and make ERC20Votes have its own nonces for delegation and direct inheritance from EIP712.

Moreover, I see you have Votes implementation since 4.5, so hopefully, you are going to use this implementation in ERC20Votes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeChanges that break backwards compatibility of the public API.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions