-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update eXOF proposal with EUROCXOF rateFeed #127
Conversation
rateFeedConfig.valueDeltaBreaker0 = Config.ValueDeltaBreaker({ | ||
enabled: true, | ||
threshold: FixidityLib.newFixedFraction(5, 1000), // 0.005 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this value breaker on EURXOF has two consequences:
- Only one of the base pairs that build EUROC/XOF has a tight (50bps) value breaker
- The CELO/eXOF pool will only inherit the 10% value breaker. In particular, CELO/eXOF will stay active while EUROC/eXOF is suspended until it auto-recovers.
I think we could live with 1, by maybe lowering EUROC/XOF value breaker threshold to 50bps.
But 2 does not feel great. Allowing minting / redemption through CELO/eXOF while we do not via EUROC
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to go 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢 ⛰️
Description
We decided to differentiate between EURXOF (pure exchange rate) and EUROCXOF (EUROC->EUR->XOF) rate which takes into account the EUROCEUR rate as well, and use the latter as the referace rate for the
eXOF/axlEUROC
pool.This allows us to configure everything using a single ValueDeltaBreaker, so we can remove the nonrecoverable one, as the current one on mainnet has defaultCooldown = 0 as well.
Other changes
eXOFRevert.sol
which was used to revert the previously passed proposal. This will be updated to reflect the current proposal after it's passed on baklava.yarn cgp
script to support-r
for revert.Tested
Not fully tested as there are no oracle reports on baklava for EUROCEUR.
Related issues
Fixes https://github.com/mento-protocol/mento-general/issues/313
Backwards compatibility
N/A
Documentation
N/A