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

[Feature][oracle] Add whitelist and Update reward distribution mechanism #249

Closed
yun-yeo opened this issue Oct 14, 2019 · 0 comments · Fixed by #250
Closed

[Feature][oracle] Add whitelist and Update reward distribution mechanism #249

yun-yeo opened this issue Oct 14, 2019 · 0 comments · Fixed by #250
Assignees
Labels
enhancement New feature or request

Comments

@yun-yeo
Copy link
Contributor

yun-yeo commented Oct 14, 2019

Feature specification

  • Create a whitelist param that stores an array of denoms that are whitelisted by the protocol. Governance can create a ParamChangeProposal that adds and removes from the whitelisted array. Check whitelist in the oracle endblocker that checks whether the denom is in the whitelist before adding the exchange rate to the store.
  • Edit the oracle Reward Pool of a VotePeriod = oracle module account / (n blocks) * # of blocks in each VotePeriod. n should be an oracle store parameter (RewardDistributionPeriod)
  • Oracle module account should be whitelisted in the bank module such that users can donate funds to the oracle module account

Additional context
None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant