Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

lending: cross collateral / cross liquidity support #1441

Merged
merged 192 commits into from
Apr 29, 2021
Merged

lending: cross collateral / cross liquidity support #1441

merged 192 commits into from
Apr 29, 2021

Conversation

jordaaash
Copy link
Contributor

@jordaaash jordaaash commented Mar 12, 2021

This PR adds support for multiple collateral deposits and liquidity borrows per obligation (currently set to 10 total). Obligation tokens are retained, specific to each collateral and minted 1:1.

Backwards compatibility was not a design goal. Obligation, reserve, and lending market structs, methods, serialized objects, and errors have been significantly changed.

Serum dex prices are no longer used. solana-flux-aggregator is used instead. We'll need to provide oracles for reserve currencies to the lending market quote currency.

Issues

Copy link
Contributor

@jstarry jstarry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking great, time to get this in and start iterating with smaller incremental PR's

@jordaaash jordaaash merged commit 5e320ba into solana-labs:master Apr 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants