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

fix: update cCOP pool reset frequency #230

Merged
merged 2 commits into from
Oct 24, 2024
Merged

fix: update cCOP pool reset frequency #230

merged 2 commits into from
Oct 24, 2024

Conversation

nvtaveras
Copy link
Contributor

Description

Chainlink often reports prices very close to the 5 minutes mark, we sometimes end up in a situation where the pool no longer has a valid median until the new price is relayed, essentially disabling trading against the pool. Because of this we are increasing the referenceRateResetFrequency parameter of the pool to 6 minutes so that there's a bit more buffer when relaying the chainlink price. This parameter is used in the oracleHasValidMedian function inside the biPoolManager. This goes together with what we already did during the oracle whitelist proposal where we also increased the report expiry time.

Other changes

N/A

Tested

Simulation is still green. referenceRateResetFrequency is only used inside shouldUpdateBuckets and oracleHasValidMedian in the biPoolManager, so this change shouldn't have any other impact.

@nvtaveras nvtaveras merged commit a89d4f4 into main Oct 24, 2024
1 check passed
@nvtaveras nvtaveras deleted the fix/cCOPResetFreq branch October 24, 2024 12:00
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.

3 participants