You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Question
Hello,
I saw in your NFT pallet that you're using the type u8 for percentage. How would you deal with percentages of 12.3% for example?
or another case: when the minter (owns 100%) wants to distribute the NFT's fractions to the buyers, based on their contributions (let's say 50.2% and 49.8%): How do you prevent the buyers to get the same percentage, while one contributed more than the other? shouldn't you use the type f32 instead?
Sorry if my question is "dumb", but I'm a rust beginner.
Thanks in advance for your answer.
Kazu
The text was updated successfully, but these errors were encountered:
you are correct. u8 wont be sufficient to hold percentage decimals. We are planning to use a fixed point decimals with 10 or 18 decimal precision. we cannot use f32 since that would bring the floating point issues again
Question
Hello,
I saw in your NFT pallet that you're using the type u8 for percentage. How would you deal with percentages of 12.3% for example?
or another case: when the minter (owns 100%) wants to distribute the NFT's fractions to the buyers, based on their contributions (let's say 50.2% and 49.8%): How do you prevent the buyers to get the same percentage, while one contributed more than the other? shouldn't you use the type f32 instead?
Sorry if my question is "dumb", but I'm a rust beginner.
Thanks in advance for your answer.
Kazu
The text was updated successfully, but these errors were encountered: