Skip to content
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

Merged
merged 3 commits into from
Jun 30, 2022

Conversation

gsora
Copy link
Contributor

@gsora gsora commented Jun 29, 2022

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.

noandrea and others added 3 commits June 28, 2022 13:42
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.
@gsora gsora requested a review from a team as a code owner June 29, 2022 10:54
@noandrea noandrea changed the base branch from main to feat/fix-mint-denom June 29, 2022 14:50
@noandrea noandrea added the cascading A PR that is targeting another branch that is not main label Jun 29, 2022
@gsora gsora changed the base branch from feat/fix-mint-denom to main June 30, 2022 08:18
@gsora gsora changed the base branch from main to feat/fix-mint-denom June 30, 2022 08:45
// 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)
Copy link
Contributor

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?

Copy link
Contributor Author

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.Ints it's no big deal.

Copy link
Contributor

@noandrea noandrea left a 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 🔝

@gsora gsora merged commit 8d75713 into feat/fix-mint-denom Jun 30, 2022
gsora added a commit that referenced this pull request Jun 30, 2022
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cascading A PR that is targeting another branch that is not main
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fee distribution: 80/10/10
3 participants