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

Liquidation only covers repayment #18

Open
rishflab opened this issue Jul 21, 2021 · 0 comments
Open

Liquidation only covers repayment #18

rishflab opened this issue Jul 21, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@rishflab
Copy link
Member

rishflab commented Jul 21, 2021

The naive implementation of dynamic liquidation described above would allow the lender to take all of the collateral. A fairer and perhaps more sensible approach would instead only allow the lender to take an amount of collateral equal in value to the principal amount plus interest the borrower agreed to repay. Any leftover collateral would be returned to the lender as part of the liquidation transaction.

We are not sure if this sub-feature is feasible given the limitations of Element's scripting language, but we think this is worth investigating nonetheless.

@luckysori luckysori added the enhancement New feature or request label Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants