Skip to content
This repository was archived by the owner on Aug 23, 2026. It is now read-only.
This repository was archived by the owner on Aug 23, 2026. It is now read-only.

Liquidation only covers repayment #18

Description

@rishflab

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions