amphora.DocsOpen app
Risk

Risk engine

Safe LTV from HyperCore order-book depth.

For each market Amphora reads the HyperCore L2 order book and sums the USD value of bids within 0.5%, 1%, 2%, 5% of mid, using aggregated books where 20 levels do not reach far enough.

Safe LTV
depth2 = USD of bids within 2% of mid
ltv    = 0.30 + 0.12 × log10(depth2 / 50,000)
ltv    = clamp(ltv, 0, 0.7)        // never above 70%
ltv    = 0 if depth2 < $20,000   // not borrowable
liquidation threshold = ltv + 0.08
Depth at −2%Safe LTV
$20,00025.2%
$50,00030.0%
$250,00038.4%
$1,000,00045.6%
$10,000,00057.6%
$100,000,00069.6%

Tiers: Deep from 55%, Moderate from 42%, Thin below that. Liquid-staked HYPE (kHYPE) uses the HYPE book with a 10% haircut. Elysium tokens trade on AMMs, so their 2% depth is estimated as 1% of pooled liquidity.

On-chain: AmphoraRiskOracle

Solidity
interface IAmphoraRiskOracle {
  // Safe LTV in basis points if updated within maxAge seconds, else 0.
  function safeLtvBps(bytes32 asset, uint256 maxAge) external view returns (uint16);
  function key(string calldata symbol) external pure returns (bytes32); // key("HYPE")
}
← Previous
Earning
Next →
Grades and safety