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

Oracle module updates #80

Closed
xlc opened this issue Jan 28, 2020 · 1 comment
Closed

Oracle module updates #80

xlc opened this issue Jan 28, 2020 · 1 comment

Comments

@xlc
Copy link
Member

xlc commented Jan 28, 2020

High level goals:

  • Feed valid oracle data should be free, and potentially have a reward
    • The reward part will be outside of oracle module, but there should be oracle module should provide necessary hooks
  • Not feeding data should be a slashable event
    • This can be implemented in other module, and oracle module should provide necessary hooks
  • Feeding bad data should be a slashable event
    • This can be done offline combined governance as identify bad action is not easy

Changes

  • Make feed_value / feed_values FreeOperational
  • Implemented SignedExtension
    • validate
      • check sender is valid operator provider
      • check this is the first oracle update tx by sender. i.e. only allow operator to update once per block
      • make it max priority
  • Update OnNewData to include sender
@xlc
Copy link
Member Author

xlc commented Feb 17, 2020

Fixed by #86

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

No branches or pull requests

2 participants