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

feat: make vault notification methods internal #75

Merged

Conversation

jaketimothy
Copy link
Contributor

What's new in this PR?

Make ComponentToken methods notifyDeposit and notifyRedeem internal.

Why?

ComponentToken methods notifyDeposit and notifyRedeem add public methods to the ABI. Issuers - such as Dinari - may implement other methods when extending ComponentToken which handle the transition of orders from pending to claimable.

Rather than have dead code in ComponentToken, this PR makes the current methods internal so they can be used to provide consistent notification events and arithmetic without adding opinionated methods to the ABI.

Example: dinaricrypto/sbt-contracts#374

Copy link
Member

@eyqs eyqs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eyqs eyqs merged commit ca5624f into plumenetwork:main Oct 28, 2024
1 check 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