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

Refactor stablecoin to build based on erc20 #434

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

ericglau
Copy link
Member

@ericglau ericglau commented Jan 29, 2025

Stablecoin generation logic was previously copied from ERC20, which resulted in code duplication.

For better maintainability, this PR refactors Stablecoin generation to be based on ERC20 generation.

Note: This causes the inheritance order of some base contracts to be different, because the options are now processed in a different order. I don't consider this to be an issue since upgradeability is not yet available for Stablecoin and constructor argument order has not changed.

@ericglau ericglau merged commit ac93b6c into OpenZeppelin:master Feb 5, 2025
9 checks passed
@ericglau ericglau deleted the refactorstablecoin branch February 5, 2025 18:29
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