Open charles-cooper opened 6 years ago
No, this is not intentional and there is no relation to the technical terms. We should probably change the wording to avoid confusion.
Perhaps drop the terms entirely:
#### `mint`
increase the `totalSupply` by increasing the balance of a specific address
(requires auth)
#### `burn`
decrease the `totalSupply` by decreasing the balance of a specific address
(requires auth)
Cool, thanks!
My own two cents is that using the double entry accounting terms can lend a lot of clarity since they have implications about money supply invariants - in this case totalSupply == sum(balances)
. The only question would be which accounts are debit/credit normal but I think making user balances credit normal would be most natural.
I'm wondering if the use of the words 'debit' and 'credit' in the definitions of 'mint' and 'burn' are intentionally used in the technical accounting sense of the term or not. The current wording implies that accounts are credit-normal (like a liability) and the total supply is debit-normal (like an asset). If that's the case, I think that that should be made explicit in the readme and the verbiage on https://github.com/dapphub/ds-token/blob/13e09345fb459103875a6266705a14ab6f72b6d3/README.md#L18-L24 should change to read more like