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: add maxAge parameter to limit the staleness of a historical data point (run 2) #16

Merged
merged 2 commits into from
May 20, 2024

Conversation

mrice32
Copy link
Member

@mrice32 mrice32 commented May 20, 2024

One Oval-related trust vector has surfaced recently. If the oracle is not responsible for keeping snapshots, then someone else is. If that entity allows snapshots to become sufficiently stale, it can lead to the application using very stale prices when a new price comes in.

One idea was to add a maxAge that limits how stale a historical snapshot can be before the current data is used instead.

That's implemented here.

This is a re-do of #14 since that one was merged with build/test errors.

mrice32 and others added 2 commits May 20, 2024 14:59
…a point (#14)

Signed-off-by: Matt Rice <[email protected]>
Signed-off-by: chrismaree <[email protected]>
Co-authored-by: chrismaree <[email protected]>
Signed-off-by: Matt Rice <[email protected]>
@mrice32 mrice32 merged commit 297ab25 into master May 20, 2024
3 checks passed
@mrice32 mrice32 deleted the mrice32/max_age_retry branch May 20, 2024 21:50
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

Successfully merging this pull request may close these issues.

1 participant