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

Default value of 20 for min pub #327

Merged
merged 2 commits into from Dec 27, 2022
Merged

Conversation

guibescos
Copy link
Contributor

@guibescos guibescos commented Dec 21, 2022

A lot of price feeds have been created in the past with min_pub equal to 0, leading to protocols thinking the price is live when it's not.

The goal is changing the default behavior so it's less error prone. By default price accounts will have min_pub equal to 20.

@guibescos guibescos changed the title Update contract and tests Default value of 20 for min pub Dec 21, 2022
jayantk
jayantk previously approved these changes Dec 21, 2022
program/rust/src/processor/add_price.rs Outdated Show resolved Hide resolved
@guibescos guibescos merged commit c263c61 into main Dec 27, 2022
@guibescos guibescos deleted the set-min-pub-to-20-by-default branch December 27, 2022 17:02
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.

None yet

2 participants