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

Spacing of oracle reports by reacting to on-chain events #34

Open
yerdua opened this issue Mar 31, 2021 · 0 comments
Open

Spacing of oracle reports by reacting to on-chain events #34

yerdua opened this issue Mar 31, 2021 · 0 comments

Comments

@yerdua
Copy link
Contributor

yerdua commented Mar 31, 2021

Expected Behavior

"I think to make it truly robust, we'd want to listen for events that say an oracle was added or removed, or the bucket update frequency has changed." -- Audrey

When certain on-chain events happen, the oracle should recalculate the timing of its reports to preserve ideal spacing.
These events include changes to anything that is used to derive configuration of the oracle.

Current Behavior

During initialization, in both the timer-reporter and the block-based-reporter, the oracle will figure out when to report, spaced out from the other oracles. This calculation only happens during initialization though, so if other oracles are added or removed after this, it could lead to non-ideal spacing, or multiple oracles trying to report in the same block.

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

No branches or pull requests

1 participant