-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add max-supply param to mint module #13308
Comments
teams that have a max supply are not using the cosmos-sdk mint module, they have forked. We should see what they have added and upstream (evmos, osmosis are two that come to mind) |
What would adding this parameter do exactly? Say we add it, we don't actually use or enforce maximum supply? Or are you suggesting that we add this param and limit minted tokens? |
Yes, this param will limit minting |
I mean I'm not necessarily opposed to it. But also, there really isn't any chain I know of that uses x/mint and has a capped supply. |
This is a good feature to be added to the mint module. This is actually an invariant though. |
Akash and Passage have capped supply (on paper), they are planning to adjust the inflation (based on estimated timeline) |
would the interaction with the cap be effected by token burns? |
Hmm, not sure. But I think it should consider burned tokens or they should be sent to a burn address (such that IBC mint/burn doesn't get effected with this) |
I think - Effectively, It should be like. current_total_supply = total minted so far + total burned so far Two cases should be handled -
Though this should be checked continuously on each block due to the possibility of burning. Whenever sufficient burn will happen, current_total_supply will be less than max_supply. |
Im open to adding this feature. We can add it in the simplest form of only a max of supply + burned and later one refactor it base of better calculations of mint and burn |
Summary
Currently a number of Cosmos based chains are announcing max-supply for their tokens but practically there's no hard-limit configurable in cosmos-sdk
Proposal
Introduce a new genesis param
max-supply
for mint module.Newly minted tokens should consider this limit
The text was updated successfully, but these errors were encountered: