-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat(mint): distribute developer and community funds #167
Conversation
This commit enables distribution of 2*10% off the newly-minted tokens to the x/distribution community pool, and the developer funding pool. The developer funding pool is represented as a standard Cosmos address, which should be determined at genesis time.
// send the minted coins to the fee collector account | ||
// calculate 10% off mintedCoins | ||
// this is handled in sdk.Ints already, some rounding error might persist. | ||
tenPercentRawAmt := mintedCoin.Amount.MulRaw(10).QuoRaw(100) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shall we do it every block or once at the beginning of the year?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, like a lookup map?
I would just do this every block, in the end it's a very simple math operation --- even on big.Int
s it's no big deal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments but genereally 🔝
* fix(app): make sure to signal ica host and credential module addition * feat(mint): add burning caps * feat(mint): add migration to fix utsp param denom error * chore(mint): don't fix the wrong stake tokens issue This migration will just replace the mint denom * chore(mint): make golangci-lint happy * chore(mint): fix tests * chore(mint): revert back to generic "stake" denom We configure "utsp" via manual genesis.json editing. The migration still writes "utsp" because it's fixing our bad behavior (we should've edited the genesis). * chore(mint): remove method impl for Burn interface * feat(mint): distribute developer and community funds (#167) * fix: disable CGO for node builds * feat(devnet): adding script to spin up local devnet (#160) * feat(mint): distribute developer and community funds This commit enables distribution of 2*10% off the newly-minted tokens to the x/distribution community pool, and the developer funding pool. The developer funding pool is represented as a standard Cosmos address, which should be determined at genesis time. Co-authored-by: Andrea Giacobino <no.andrea@gmail.com> Co-authored-by: PaddyMc <paddymchale@hotmail.com> Co-authored-by: Andrea Giacobino <no.andrea@gmail.com> Co-authored-by: PaddyMc <paddymchale@hotmail.com>
This commit enables distribution of 2*10% off the newly-minted tokens
to the x/distribution community pool, and the developer funding pool.
The developer funding pool is represented as a standard Cosmos address,
which should be determined at genesis time.
Closes #107.