Skip to main content

Purpose

Each borrower deploys a dedicated Credit Account smart contract on HyperEVM. It:
  • Holds the user’s deposited margin and borrowed funds as a smart wallet.
  • Executes swaps and other HyperEVM interactions while keeping collateral inside the account.
  • Enables “undercollateralized” usage relative to the initial deposit, while remaining overcollateralized within the account because borrowed funds never leave it.
  • Enforces a health check: swaps or withdrawals execute only if the post-trade Health Factor stays above 1.

Permitted assets

A Credit Account is scoped to a single market. It may only hold the market’s collateral tokens plus its debt token. Example: if a market allows borrowing USDC against uBTC and HYPE, that Credit Account can only hold uBTC, HYPE, and USDC. Restricting the asset universe simplifies risk management.

Health Factor

An account is liquidatable when HF<1HF < 1. Define, at time tt:
  • Qi(t)>=0Q_i(t) >= 0: quantity of asset ii.
  • Pi(t)>0P_i(t) > 0: price of asset ii.
  • LTi(0,1)LT_i \in (0,1): liquidation threshold of asset ii.
  • d(t)>=0d(t) >= 0: outstanding principal debt.
  • b(t)>=0b(t) >= 0: accrued interest.
Total collateral value VV and obligation OO: V(t)=i=1nQi(t)Pi(t)LTi,O(t)=d(t)+b(t)V(t) = \sum_{i=1}^n Q_i(t)P_i(t)LT_i, \quad O(t) = d(t) + b(t) Health Factor: HF(t)=V(t)O(t)=i=1nQi(t)Pi(t)LTid(t)+b(t)HF(t) = \frac{V(t)}{O(t)} = \frac{\sum_{i=1}^n Q_i(t)P_i(t)LT_i}{d(t)+b(t)}
https://mintlify.s3.us-west-1.amazonaws.com/luban-e0d6cae5/x-logo.svg