-
Notifications
You must be signed in to change notification settings - Fork 70
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
Collateralization Limits Final #177
Conversation
attribution values in the borrow instruction
* closable instruction * add more tests around signer * liquidate closeable obligations * test fix * pr fixes * adding a close borrow attribution limit * PR fixes
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## v2.0.3_upcoming #177 +/- ##
==================================================
Coverage ? 85.28%
==================================================
Files ? 53
Lines ? 21381
Branches ? 0
==================================================
Hits ? 18235
Misses ? 3146
Partials ? 0 ☔ View full report in Codecov by Sentry. |
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.
approved pending clock account removal
* oracle price multiplier (#174) * oracle price multiplier * changing added price weight to be i64 * rename added price weight * Allow risk authority to change rate limiter config in the lending market (#167) * account for risk authority in set lending market owner and config * PR fixes * only let risk authority disable outflows * Optional, extra oracle on reserve (#176) * minor refactoring of price fields in reserve * adding extra oracle pubkey and extra market price to reserve * using extra market price everywhere * https://www.youtube.com/watch?v=uLHqpjW3aDs * validate extra_oracle_pubkey in init reserve / update reserve * writing tests * more tests * more refresh reserve checks * adding some unit tests for extra_oracle stuff * test init reserve * clippy * pr fixes * don't care about staleness or variance for the extra oracle * Collateralization Limits Final (#177) * forgot to update smoothed price with price scale in switchboard case * remove redundant multiply * remove clock (#179)
Solend V2 introduces collateralization limits, which are global limits on how much can be borrowed against an asset. For example, a collateralization limit of $20M for SOL means only $20M of borrows can be secured by SOL collateral.
If the collateralization limit for an asset is hit, increasing borrows against that asset (via borrows or withdraws) is not allowed. Additionally, any obligation that violates this limit can be marked as closeable by the lending market owner or risk authority. A closeable obligation can be liquidated without penalty.
Comments:
Compute unit usage of refresh obligation before and after changes.