ToddStool / fungi

14 stars 8 forks source link

bug/gotcha: When buying tokens, dust over time is not added to the current dynamic fungi total #1

Open Isabello opened 6 months ago

Isabello commented 6 months ago

Over time when purchasing tokens users receive dust. This dust is ignored when generating a new mushroom and over time causes a drift from the users token balance and the mushrooms token value. This can lead to confusion for users when they use the Max button in their wallet to transfer tokens.

Here is an example below. The user was attempting to preserve their existing dynamic mushroom, but ran into this issue when transferring the tokens out because of the mismatch between their total token balance and what the mushroom was generated from. This caused them to need to do more transfers than necessary to make their mushroom stable.

image

I am not sure how you would want to approach fixing this. I understand there will be a site to make it easier to generate mushrooms, so maybe this is a non issue once it is released.

Isabello commented 5 months ago

As suspected this kind of thing is starting to cause UX problems for users where their total balance vs dynamic balance drift apart from buying sub integer amounts. The biggest friction is coming with the PEPI implementation where the high token cost is causing users to buy more fractions of a token than whole numbers.

It might be best to bring the decimal value down 0 or start tracking it some how as part of the inscription. I am not sure how this would interact with pools but decimals have no value except for causing bugs at this point.