Skip to content

About Nft percentage #65

@ndkazu

Description

@ndkazu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions