> ## Documentation Index
> Fetch the complete documentation index at: https://docs.graphadvocate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Lido Lend

> Live health for Lido's WETH/wstETH lending market on Ethereum: a $0.05 market report and a $0.01 position check, built on the Lido Lend subgraph plus mainnet eth_calls.

[Lido Lend](https://github.com/lidofinance/lend) is Lido's WETH/wstETH lending market on Ethereum. It is a Morpho Blue fork with a market controller that adds a collateral activation timer, a supply cap, pause/freeze and guardian flags. Lenders exit through a **settlement queue**: instead of waiting for idle liquidity, they cancel borrower debt and take the borrower's collateral, lowest health first.

Graph Advocate sells two endpoints for it, plus a free routing answer.

## What you get

| Endpoint | Cost | Returns |
| - | -: | - |
| `POST /lido-lend` | \$0.05 | Live market report: every borrower's health factor, LTV and liquidation distance (riskiest first), borrow/supply APY and rate at target from the AdaptiveCurveIrm, oracle vs Chainlink stETH/ETH gap, controller pause/freeze/supply cap, settlement queue root, recent settlements and 30-day daily history |
| `POST /lido-lend/position` | \$0.01 | One address: live health, LTV, liquidation distance, active/activating/dust collateral with unlock time, settlement-queue status (root, next-to-settle, personal target LTV and slices), vault shares, guardian flags and recent events |
| `POST /route` | \$0.01 | Any Lido Lend question routed to the Lido Lend subgraph with a verified query, executed |

Per-call payment in USDC on Base via x402. Free preview: `GET /preview?q=Lido Lend borrower health` returns the market row and the riskiest borrowers from the subgraph.

## Why live reads

The [Lido Lend subgraph](https://thegraph.com/explorer/subgraphs/CYN2yvoiGyJjCrJV3EgTVtWK58MZ31rYhxojeYtdXoYR) (`CYN2yvoiGyJjCrJV3EgTVtWK58MZ31rYhxojeYtdXoYR`) reproduces on-chain state to the wei, but two things lag by design:

* **Health.** The subgraph prices collateral with the oracle once a day, and holds debt at the totals from the position's last event. The paid endpoints re-read every position, the market totals and the oracle at one block, and project interest accrued since the last update.
* **Market price.** Lido Lend's oracle values wstETH at its stETH redemption rate (stETH = 1 ETH). The report also re-values each position at the Chainlink stETH/ETH price (`health_factor_at_market_price`) and reports the gap in basis points.

History (settlements, daily volumes, activation events) comes from the subgraph. Daily volume fields on `MarketDailySnapshot` are raw wei; the report normalizes them.

## Sample requests

```bash theme={null}
curl -X POST 'https://graphadvocate.com/lido-lend' \
  -H 'Content-Type: application/json' -d '{}'

curl -X POST 'https://graphadvocate.com/lido-lend/position' \
  -H 'Content-Type: application/json' \
  -d '{"address": "0x83ddf9b39da1607db2c52fba53d1852e38d18157"}'
```

Unpaid calls return HTTP 402 with the price and how to pay. Any x402 client (`x402-fetch`, `x402-axios`, `x402` for Python) signs and retries.

## Sample output (position, trimmed)

```json theme={null}
{
  "protocol": "Lido Lend",
  "address": "0x83ddf9b39da1607db2c52fba53d1852e38d18157",
  "health": {
    "debt_weth": 36.9003, "collateral_wsteth": 40.9989,
    "health_factor": 1.3621, "ltv": 0.7195,
    "liquidation_price_drop_pct": 26.582,
    "health_factor_at_market_price": 1.3593, "risk": "healthy"
  },
  "collateral_activation": { "active_wsteth": 30.6057, "activating_wsteth": 10.3931 },
  "settlement": {
    "in_settlement_queue": true, "is_next_to_settle": false,
    "queue_root": "0xa02f498e5102552ee27a2f10caa5104adbab03f9"
  }
}
```

## Not charged on failure

If the Ethereum RPCs or The Graph gateway are unreachable the endpoints answer 502; an unknown address or a malformed one answers 400. The x402 middleware only settles 2xx responses, so neither costs anything.

## MCP

`npx -y graph-advocate-mcp` exposes `lido_lend_market` and `lido_lend_position`, which call these endpoints.

## Query the subgraph yourself

```graphql theme={null}
{
  markets(first: 1) { totalSupply totalBorrow utilization borrowAPY supplyAPY }
  positions(first: 10, orderBy: healthFactor, orderDirection: asc, where: { borrowShares_gt: "0" }) {
    account { id } borrow collateralBD healthFactor ltv
  }
}
```

Plain Lido staking (stETH APR, rewards, holders) lives in the official Lido subgraph, `Sxx812XgeKyzQPaBpR5YZWmGV5fZuBaPdh7DFhzSwiQ`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.