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 . Define, at time :- : quantity of asset .
- : price of asset .
- : liquidation threshold of asset .
- : outstanding principal debt.
- : accrued interest.
