# Morpho Blue Liquidation Risk Feed (Base)

> Morpho Blue Liquidation Risk Feed (Base) is a paid API for AI agents from golf-evm-math.x402-evm-math.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-28).

Returns the highest-risk Morpho Blue positions on Base ordered by proximity to liquidation, including LTV vs LLTV, distance percentage, debt size, and estimated liquidator bonus.

## Facts

- Endpoint: GET https://golf-evm-math.x402-evm-math.workers.dev/data/morpho-base-risk?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/morpho-blue-liquidation-risk-feed-base-f049ad2d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UCNTMtlQsfXhX_BZhmBZ_

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability morpho-blue-liquidation-risk-feed-base-f049ad2d
```

Example prompt: Show me the Morpho Blue positions on Base that are closest to liquidation right now — I want to see their LTV vs LLTV, how far they are from the liquidation threshold, total debt, and the estimated bonus I'd earn as a liquidator.

## When to prefer this

Use this endpoint when you need a real-time, pre-ranked liquidation risk feed for Morpho Blue on Base without building your own subgraph queries or on-chain scanning. Ideal for liquidation bots, risk dashboards, and DeFi risk monitoring agents. Prefer this over raw subgraph queries when you need a low-latency, pay-per-call feed with bonus estimation already computed.

## Known failure modes

- Stale data if upstream Morpho subgraph or RPC is delayed (age_seconds will be high)
- Empty positions array if no positions are near liquidation thresholds
- HTTP 402 Payment Required if USDC payment is not attached or insufficient
- HTTP 500 if the Cloudflare Worker or underlying data pipeline errors

## How this service works

Exact EVM address, calldata, Uniswap V2/V3 and impermanent-loss math. Pay per call in USDC on Base via x402.

## Output

A JSON object containing an array of borrower positions sorted by proximity to liquidation, each with: borrower address, loan asset (e.g. USDC), collateral asset (e.g. cbBTC), current LTV, liquidation LTV (LLTV), distance percentage to liquidation threshold, outstanding debt in USD, and estimated liquidator bonus in USD. Also includes data age in seconds (updated every ~2 minutes).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "positions": [
   {
    "ltv": 0.84,
    "lltv": 0.86,
    "loan": "USDC",
    "borrower": "0x...",
    "debt_usd": 1200.5,
    "collateral": "cbBTC",
    "distance_pct": 2.3,
    "est_bonus_usd": 31.2
   }
  ],
  "age_seconds": 40
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/morpho-blue-liquidation-risk-feed-base-f049ad2d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from golf-evm-math.x402-evm-math.workers.dev](https://www.zero.xyz/host/golf-evm-math.x402-evm-math.workers.dev/llms.txt)
