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: currency traits and implementations #82

Merged
merged 2 commits into from
Sep 23, 2024
Merged

refactor: currency traits and implementations #82

merged 2 commits into from
Sep 23, 2024

Conversation

shuhuiluo
Copy link
Collaborator

No description provided.

Streamline trait implementations for `Currency` and `NativeCurrency` by removing redundant methods and consolidating logic. Adjust various currency-related entities (`Ether`, `Token`) to align with these changes, ensuring consistency and reducing code duplication.
Consolidated the `Currency` trait implementations using macros for `Ether`, `Token`, and `CurrencyLike` types. This reduces code duplication and improves maintainability. The macros now handle trait method definitions for multiple types.
@malik672 malik672 merged commit 84b773c into master Sep 23, 2024
2 checks passed
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