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

Validate royalty percentage when minting cw2981 #111

Merged
merged 6 commits into from
Feb 28, 2023

Conversation

peara
Copy link
Contributor

@peara peara commented Feb 16, 2023

Problem

At the moment, there is no validation of royalty_percentage when minting new token in cw2981-royalties.
As percentage over 100% is mostly nonsensical in the context of royalty, it should be checked to prevent potential errors.
For example, a marketplace contract can mistakenly send their own tokens instead of the buyer's because royalty amount will be larger than the price.

=> validate royalty_percentage to be smaller than equal to 100.

@peara
Copy link
Contributor Author

peara commented Feb 18, 2023

@JakeHartnell @shanev @larry0x Please check this PR.

@peara
Copy link
Contributor Author

peara commented Feb 21, 2023

@larry0x Can we go?

@JakeHartnell JakeHartnell merged commit c1ece55 into CosmWasm:main Feb 28, 2023
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.

None yet

4 participants