Skip to content
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

Feat/multi collateral #100

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Feat/multi collateral #100

wants to merge 6 commits into from

Conversation

David-Linear
Copy link
Contributor

feat: multi-collateral work
Added debt distribution contracts, adjusted contracts surrounding it, debt system, collateral system, liquidation system, and build and burn system to utilize this new structure.
Updated safe decimal math.
Updated tests.
Updated interfaces and surrounding infrastructure to utilize multi-collateral.

tommy-linear and others added 6 commits July 19, 2023 07:26
Adds the multi-collateral functionality.

Currently only the native token `LINA` can be used for building `lUSD`,
which limits `lUSD` liquidity. With multi-collateral enabled, users can
build `lUSD` from other designated collateral tokens as well.

Each collateral can have different parameters in terms of `lUSD`
minting and liquidation. Debts from different collateral tokens under
the same user are also completely separated. For example, an unhealthy
`LINA` debt position will not result in a healthy `WBTC` position being
liquidated, even if they're under the same user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants