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.
Problem
At the moment, there is no validation of
royalty_percentage
when minting new token incw2981-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.