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

sGHO

Custom price feed for Aave Savings GHO (sGHO).

Custom price feed for Aave Savings GHO (sGHO). sGHO is an ERC-4626 vault share that accrues value as GHO savings yield accumulates. The price is derived from the vault's current share-to-asset conversion rate multiplied by the Chainlink GHO/USD feed.

Source: sGHO_CustomPriceFeed.sol


Approach

sGHO.convertToAssets(1 sGHO) × GHO/USD (from the NAV's primary feed)

The GHO/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 sGHO price feed: rate and Chainlink inputs combine into a USD price, with a staleness gate.
sGHO price feed — how its oracle inputs compose into a USD price, with the staleness gate.

Price calculation

Input
Source
Description

convertToAssets()

IERC4626(sGHO)

GHO backing per 1 sGHO share at the current savings-accrued rate

GHO_USD

NAV base — getPriceDataNoDivergence(GHO) (8 dec)

the NAV's primary GHO/USD price

The ERC-4626 convertToAssets call returns the current exchange rate including all accrued savings yield. The vault decimals are read once at deploy. Result carries the feed's 8 decimals. The GHO/USD term is read from the NAV's primary feed.


Constructor

Parameter
Description

sGho_

The sGHO vault address (also used to read vault decimals)

nav_

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

baseAsset_

The registered base stablecoin whose USD price is read (GHO); must equal the vault's asset() — reverts BaseAssetMismatch otherwise


Staleness

The price is stale if the NAV reports the base asset (GHO) stale — all its feeds stale. The base leg's updatedAt comes from the NAV's selected GHO feed. The convertToAssets rate has no heartbeat — it is a live view on the ERC-4626 vault.


Chains

Deployed on Ethereum mainnet only.

Last updated