-
Notifications
You must be signed in to change notification settings - Fork 11
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
CGP: Increase SortedOracles report expiry for PHP/USD to 6 minutes #518
Comments
What are the implications of increasing the report expiry without increasing the bucket update reset time? We should confirm this before making this change. We also need to know if we will make a change to the bipool manager as this will push out the intended governance freeze for MU0 Next |
Setting the report expiry to 6 minutes won't solve this problem unless we also increase the mento-core/contracts/swap/BiPoolManager.sol Line 519 in 6f8b5b7
With the suggested changes the isOldestReportExpired would return false in the described scenario but the medianReportRecent would still be false since the calculation doesn't just use the report expiryseconds from SortedOracles but the referenceRateResetFrequency from the exchange for comparison. So I guess we would need to change both values. This means not just calling |
Also, I don't think we need to increase this value for CELO/PHP since this rate feed is only used for gas payment and the gas payment logic doesn't take the report expiry into account. |
5 |
Description
The simplest fix here would be to increase token report expiry for PHP/USD in SortedOracles to 6 minutes and update the referenceRateResetFrequency for the cUSD/PUSO pool as well
Acceptance Criteria
The text was updated successfully, but these errors were encountered: