Skip to content

Refactor ERC20Facet #207

@mudgen

Description

@mudgen

We need to start refactoring our existing facets to match the new design documentation of Compose.

The Permit functionality in the existing ERC20Facet needs to be pulled out of that and put in its own facet that composes with the ERC20Facet.

The burn and burnFrom functions need to be pulled out of ERC20Facet and put in its own facet that composes with the ERC20Facet.

The order of the variables in ERC20Storage struct should change so that the variables not used by extensions should be placed last so they are removed in extensions. This is according to the Extending Facets documentation: https://compose.diamonds/docs/design/design-for-composition#extending-facets

Helpful Information

Have a question? Please check our contribution guide first - your answer might already be there!

Want to discuss something? For general questions, ideas, or brainstorming, please browse our discussions or start a new one.

You can also join our Discord to discuss the issue.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions