For the complete documentation index, see llms.txt. This page is also available as Markdown.

LDO

Custom price feed for the Lido DAO governance token (LDO).

Custom price feed for the Lido DAO governance token (LDO). No direct LDO/USD feed exists, so the price is composed from a Chainlink LDO/ETH feed and the NAV's own ETH/USD base price.

Source: LDO_CustomPriceFeed.sol


Approach

Chainlink LDO/ETH × NAV base ETH/USD (getPriceDataNoDivergence(WETH))

The base/USD term is sourced from the NAV's own selector — see Base/USD from the NAV's own selector.

Left-to-right flowchart of the LDO price feed: rate and Chainlink inputs combine into a USD price, with a staleness gate.
LDO price feed — how its oracle inputs compose into a USD price, with the staleness gate.

Price calculation

Input
Source
Description

LDO/ETH

Chainlink LDO/ETH feed (latestRoundData)

LDO price in ETH (18 dec)

ETH/USD

NAV base — getPriceDataNoDivergence(WETH) (8 dec)

the NAV's primary ETH/USD price

The LDO/ETH leg is a Chainlink feed; the ETH/USD leg is the NAV's primary base price. The divisor is 10 ** ldoToEth.decimals(). Output is 8 decimals (inherited from the ETH/USD leg via _decimals).


Constructor

Parameter
Description

ldo_

LDO token address (the supported underlying asset)

ldoToEthChainlinkAddress_

Chainlink LDO/ETH aggregator

ldoToEthChainlinkHeartbeat_

Staleness window (seconds) for the LDO/ETH feed

nav_

NAVCalculator (proxy) — supplies the base asset's USD price via getPriceDataNoDivergence

baseAsset_

The registered base asset whose USD price is read (WETH)


Staleness

The LDO/ETH heartbeat is checked directly. getLatestPrice() returns stale = true if the LDO/ETH feed satisfies block.timestamp − updatedAt ≥ heartbeat, if either leg's answer is ≤ 0, if the LDO/ETH updatedAt is in the future (clamped to block.timestamp), or if the NAV reports the base asset (WETH) stale — all its feeds stale. The base leg's updatedAt comes from the NAV's selected feed. The reported updatedAt is the older of the two legs.


Chains

Deployed on Ethereum.

Last updated