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

rsETH (L2)

Custom price feed for Kelp DAO rsETH on L2 chains.

Custom price feed for Kelp DAO rsETH on L2 chains. No direct rsETH/USD feed exists, so the price is composed from a Chainlink rsETH/ETH feed and the NAV's primary ETH/USD price.

Source: rsETH_L2_CustomPriceFeed.sol

L2 feed. For the Ethereum mainnet feed, see rsETH.


Approach

Chainlink rsETH/ETH × NAV primary ETH/USD

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

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


Price calculation

Input
Source
Description

rsETH/ETH

Chainlink rsETH/ETH feed (latestRoundData)

rsETH price in ETH (18 dec)

ETH/USD

NAV basegetPriceDataNoDivergence(WETH) (8 dec)

the NAV's primary WETH/USD price

The rsETH/ETH leg is a Chainlink feed; the ETH/USD leg comes from the NAV's primary feed. The divisor is 10 ** rsETHToETH.decimals(). Output is 8 decimals (inherited from the ETH/USD term).


Constructor

Parameter
Description

rsEth_

rsETH token address (the supported underlying asset)

rsEthToEthChainlink_

Chainlink rsETH/ETH aggregator

rsEthToEthHeartbeat_

Staleness window (seconds) for the rsETH/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 rsETH/ETH Chainlink heartbeat is checked. getLatestPrice() returns stale = true if the rsETH/ETH feed satisfies block.timestamp − updatedAt ≥ heartbeat, if its answer is ≤ 0, or if its 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 WETH feed; the reported updatedAt is the older of the two legs.


Chains

Deployed on Arbitrum. The Ethereum mainnet counterpart is rsETH (Mainnet), which uses a rate provider against ETH/USD.

Last updated