planetarium / libplanet

Blockchain in C#/.NET for on-chain, decentralized gaming
https://docs.libplanet.io/
GNU Lesser General Public License v2.1
506 stars 141 forks source link

Do not allow negative balance #3725

Closed greymistcube closed 5 months ago

greymistcube commented 5 months ago

Although not being used in production, this is another pain point in migrating IWorld model from current version to the next (where Currency storing scheme is to be changed). Besides, there seem to be no consistency in terms of how Currency should be handled in a larger context where minting and burning is also considered. 🙄