-
Notifications
You must be signed in to change notification settings - Fork 166
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: collateral share restriction works during partial price outages #1812
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #1812 +/- ##
==========================================
+ Coverage 57.79% 57.92% +0.12%
==========================================
Files 78 78
Lines 8026 8049 +23
==========================================
+ Hits 4639 4662 +23
Misses 3049 3049
Partials 338 338
|
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.
pre-approving.
When some token prices are missing from the oracle, it becomes impossible to calculate a token's collateral share.
However, if the collateralized token's price is known, and enough other token prices are known to prove that it cannot possibly be over its
MaxCollateralShare
, then we can letMsgSupplyCollateral
orMsgCollateralize
succeed anyway.