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)
ParameterValueCap in codeWho can change it
Initial loan-to-value50 %65 %, and 10 points under the thresholdowner, for new bids and withdrawals only
Liquidation threshold70 %85 %nobody (immutable)
Liquidation bonus5 % of HYPE sold10 %nobody (immutable)
Origination fee0.3 %1 %owner, fixed per auction at settlement
The clearing ruleLiquidation