LDO
Custom price feed for the Lido DAO governance token (LDO).
Last updated
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
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.
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).
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)
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.
Deployed on Ethereum.
Last updated
price = (LDO/ETH) × (ETH/USD) / 10^(LDO/ETH decimals)constructor(
address ldo_,
address ldoToEthChainlinkAddress_,
uint256 ldoToEthChainlinkHeartbeat_,
address nav_,
address baseAsset_
)