Skip to content

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