Loans and health
Repayment
repay(id, amount) repays any part of a loan, at any time, by anyone. The amount owed is fixed when the loan opens: repaying early pays the same total (interest to maturity), so lenders earn exactly the rate they cleared at. When the borrower repays the last unit, the collateral comes back as HYPE in the same transaction; if someone else does, the borrower takes it back with withdrawCollateral.
Collateral
Add collateral to an open bid or a loan at any time. Withdraw it while the loan stays within the initial loan-to-value (50 %) at a usable price and before maturity, or freely once the loan is repaid.
Health
Loan-to-value is the amount owed divided by the collateral's value at the guarded price. A loan can be liquidated when its loan-to-value reaches 70 %, or from maturity on while unpaid.
ltv = owed / (HYPE × price)
liquidation price = owed / (70 % × HYPE)| Parameter | Value | Cap in code | Who can change it |
|---|---|---|---|
| Initial loan-to-value | 50 % | 65 %, and 10 points under the threshold | owner, for new bids and withdrawals only |
| Liquidation threshold | 70 % | 85 % | nobody (immutable) |
| Liquidation bonus | 5 % of HYPE sold | 10 % | nobody (immutable) |
| Origination fee | 0.3 % | 1 % | owner, fixed per auction at settlement |