Add required Price Feeds

Price Feed Store (PFS)

The Price Feed Store is a chain-specific registry that lists which tokens and price feeds can be used within Gearbox on that chain.

circle-exclamation

Only the Instance Owner—a chain-specific multisig—can add or update entries in the Price Feed Store. This role acts as a neutral technical gatekeeper, ensuring safe and verified configurations while staying out of risk or business decisions.

circle-check

How to work with PFS?

Interface for accessing each chain's PFS is located at https://permissionless.gearbox.foundation/instancesarrow-up-right.

Demo of PFS setup workflow:

What price feed sources are already integrated? (Click on feed to see details)

Price source
Feed type
Supported collaterals & features

ERC4626

Most of the yield-bearing vaults

Pyth

Blue chip & emerging tokens

Redstone

Deployed on any EVM on day 0

Upper bound

Bounded

  • Bound borrowed tokens to protect borrowers from liquidations

  • Bound collateral tokens to protect LPs from price manipulation

Multiply 2 feeds price

Composite

Optimal way to price correlated token pairs

Constant price

Constant

  • Hardcode pegged assets

  • Apply premium or discount combining with composite feed

Curve_crypto Curve_stable

Collateralize Curve LP tokens

Token price from Curve Pool

Curve TWAP

Collateralize experimental tokens with pricing based on DEX trades

Pendle PT TWAP

Get TWAP market price of PTs

Kodiak_island

Get island share price

Updatable LP bounds

Some tokens in Gearbox are tokenized vault shares — they represent ownership of assets inside a vault or liquidity pool. Examples include:

  • Vault tokens like ERC-4626 share tokens

  • LP tokens from DEXs or yield strategies

How pricing works:

  • Each share has an exchange rate to its underlying asset (e.g., 1 share = X ETH).

  • The LP price feed combines:

    • the share price from the vault, and

    • the USD price of the underlying asset.

Why bounds are needed:

  • Vault share prices can be manipulated or distorted through smart-contract exploits.

  • Normally, share prices move slowly and predictably with yield — not like volatile traded tokens.

To protect against abnormal price swings, Gearbox sets updatable bounds:

  • A minimum and maximum price for each LP share.

  • These bounds cap sudden drops or spikes in reported prices.

  • They are updated periodically to track the vault’s real exchange rate as it appreciates over time.

This mechanism keeps LP pricing stable, reliable, and manipulation-resistant while still following genuine on-chain growth.


Setup details

chevron-rightPythhashtag

Click New Feed and select Pyth type

Pyth dashboard with feeds info: https://insights.pyth.network/price-feedsarrow-up-right

  • Name:

  • Token:

    • Token address Needed for Gearbox contracts to understand what pull feed needs to be updated

  • descriptionTicker

    • The same as name This parameter is to be removed later

  • priceFeedId

  • Pyth

  • maxConfToPriceRatio (takes value in bps: 300 = 3%)

    • Except for the current price, Pyth returns confidence interval

    • If the width of confidence interval in % is larger than this parameter, feed ourput is considered invalid causing tx revert

      • Example (consider maxConfToPriceRatio = 3%)

        • Valid price:

          • Price: 3000

          • Confidence interval: 15

          • confToPriceRatio = 15/3000 = 0.5%

        • Invalid price:

          • Price: 3000

          • Confidence interval: 120

          • confToPriceRatio = 120/3000 = 4%

  • Staleness Period

    • Gearbox contracts track the timestamp of last Feed's update If the update happened more than Staleness Period seconds ago, feed value should be updated or the contracts will revert

    • Recommended value for Pull feeds: 240s = 4min

circle-exclamation
chevron-rightExternal feedshashtag

Click New Feed and select External type

Dashboards of external providers:

Config parameters:

  • Name:

    • Specify token Symbol and Provider name

    • Examples:

      • USDC (Chainlink)

      • hemiBTC (EO)

      • ETH (Redstone Push)

      • mTBILL (Midas NAV)

  • priceFeedAddress

    • Address of deployed feed

  • Staleness Period (in seconds)

    • Gearbox contracts track the timestamp of last Feed's update If the update happened more than Staleness Period seconds ago contracts will revert &#xNAN;Motivation: If the feed with heartbeat of 24 hours wasn't updated in the last 30 hours, smth bad happened with the oracle providers and protocol operations are blocked waiting for Curator to interfere

    • Recommended value:

      • Heartbeat + 15 minutes for slower chains (Ethereum)

        • 87 300s = 24h + 15min

      • Heartbeat + 2 minutes for faster chains

        • 86 520s = 24h + 2min

chevron-rightERC4626 exchange ratehashtag

This contract fetches mint/redeem rate from specified erc4626 vault and multiplies it by the underlying feed output to return the vault shares' USD price.

Click New Feed and select ERC4626 type

Config parameters:

  • Name:

    • Specify token Symbol and underlying feed price Provider name

    • Example:

      • Name: sDAI (Chainlink) Will mean that this feed takes ERC4626 sDAI/DAI exchange rate directly from sDAI contract + DAI/USD price from Chainlink

  • Vault:

    • Address of ERC4626 vault to fetch mint/redeem rate from.

  • underlyingPriceFeed:

    • Select existing price feed

    • Example:

      • If the specified vault it sUSDe, then underlying price feed should return USDe/USD price.

circle-info

To understand what asset's feed should be passed as underlying, go to the ERC4626 vault contract and call its asset() method — you will get the address of the token which is vault's underlying.

chevron-rightRedstone pullhashtag

Click New Feed and select Redstone type

Config parameters:

  • Name:

  • Token:

    • Token address Needed for Gearbox contracts to understand what pull feed needs to be updated

  • descriptionTicker

    • The same as name This parameter is to be removed later

  • dataServiceId

    • Most likely should be kept untouched Internal variable for non-standard sources of redstone data

  • dataFeedId

    • The same as Symbol in Redstone UI

  • signersThreshold

    • Minimum amount of signatures from Redstone nodes to have for the feed's result to be deemed valid.

    • Redstone currently have maximum of 5 nodes.

    • The safest option is to set this value to 5 (this was historically used in Gearbox), but sometimes couple of Redstone nodes may stop working for a short periods of time.

  • Signer 1/2/3/4/5

    • Most likely should be kept untouched Redstone have fixed list of signers' addresses that rarely (if ever) changes

chevron-rightKodiak islandhashtag

Click New Feed and select Kodiak_island type

Config parameters:

  • Name:

  • kodiakIsland:

    • Island Address

  • PriceFeed0

    • Select the feed from already added to price token with 0'th index in terms of USD

  • PriceFeed1

    • Select the feed from already added to price token with 1'st index in terms of USD

  • descriptionTicker

    • The same as name This parameter is to be removed later

chevron-rightPendle PThashtag
circle-info

Before any deployment, ensure that pendle market has correct cardinality. It should be no less than twapWindow / blockTime + 1 for a given chain.

To check cardinality, go to LP contract and get _storage()[4]. To update cardinality, call increaseObservationsCardinalityNext of an LP contract.

  • Factory Addresses:

    • Plasma: 0xAcD67f36183c8bA6b80Cfa60375510Ce17D0dd26

    • Mainnet: 0x9E5129dcC15d39625617DcD7F0F44FB0BB957FFd

  1. Deploy PT to SY oracle using createOracle Factory method

    Market: Pendle Market address twapDuration: twap duration in seconds (1800 recommended) baseOracleType: 0 (PT to SY price)

  2. Add deployed pendle feed as external (staleness period = 1)

  3. Deploy Composite Gearbox Oracle Set Feed 1 to previously deployed PT-to-SY feed Set Feed 2 to feed which prices SY to USD

circle-exclamation
  1. Deploy Bounded Gearbox Oracle Set underlying feed to previously deployed Composite feed Set bound to 1

Gearbox PT feed

Click New Feed and select Pendle PT TWAP type

Config parameters:

  • Name:

    • Specify token Symbol and source of Underlying Price Example:

      • Name: PT-sUSDE-25SEP2025 (Chainlink)

        • Underlying feed: sUSDe/USD (Chainlink)

  • market

    • Pendle Market address

  • UnderlyingPriceFeed

    • The feed contract is able to fetch price of PT token in terms of SY token from the Pendle Market and then multiplies it by SY price in terms of USD ⇒ underlying feed is an intended method to price SY in terms of USD.

  • priceToSy

    • Most likely you need to check this box (if on the previous step you set underlying price feed to be equal to SY price)

    • If you don't check this box, you will need to use asset price as underlying price feed. (read more about the difference between Asset and SY herearrow-up-right)

  • twapWindow

    • The window length in seconds for averaging market price

    • Value of 1800s was usually used for previous deployments

Deploy Bounded Gearbox Oracle

Set underlying feed to previously deployed PT TWAP feed Set bound to 1

chevron-rightCurve Stablehashtag

Click New Feed and select Curve_stable type

Config parameters:

  • Name

    • Specify pool Symbol and sources of Underlying Prices Example:

      • Name: crvUSD-USDC (Chainlink)

  • Token

    • LP token address

  • Pool

    • The address of the pool

  • underlyingPriceFeed 0/1/2/3

    • Select a feed from allowed list to price pool's tokens at given indexes

    • If pool has only 2 tokens in it, specify only underlyingPriceFeed0 & 1

chevron-rightPendle LPhashtag
circle-info

Before any deployment, ensure that pendle market has correct cardinality. It should be no less than twapWindow / blockTime + 1 for a given chain.

To check cardinality, go to LP contract and get _storage()[4]. To update cardinality, call increaseObservationsCardinalityNext of an LP contract.

  • Factory Addresses:

    • Plasma: 0xAcD67f36183c8bA6b80Cfa60375510Ce17D0dd26

    • Mainnet: 0x9E5129dcC15d39625617DcD7F0F44FB0BB957FFd

  1. Deploy PT to SY oracle using createOracle Factory method

    Market: Pendle Market address twapDuration: twap duration in seconds (1800 recommended) baseOracleType: 2 (LP to SY price)

  2. Add deployed pendle feed as external (staleness period = 1)

  3. Deploy Composite Gearbox Oracle Set Feed 1 to previously deployed LP-to-SY feed Set Feed 2 to feed which prices SY to USD

circle-exclamation
  1. Deploy Bounded Gearbox Oracle Set underlying feed to previously deployed Composite feed Set bound to 1

Gearbox PT feed

Click New Feed and select Pendle PT TWAP type

Config parameters:

  • Name:

    • Specify token Symbol and source of Underlying Price Example:

      • Name: PT-sUSDE-25SEP2025 (Chainlink)

        • Underlying feed: sUSDe/USD (Chainlink)

  • market

    • Pendle Market address

  • UnderlyingPriceFeed

    • The feed contract is able to fetch price of PT token in terms of SY token from the Pendle Market and then multiplies it by SY price in terms of USD ⇒ underlying feed is an intended method to price SY in terms of USD.

  • priceToSy

    • Most likely you need to check this box (if on the previous step you set underlying price feed to be equal to SY price)

    • If you don't check this box, you will need to use asset price as underlying price feed. (read more about the difference between Asset and SY herearrow-up-right)

  • twapWindow

    • The window length in seconds for averaging market price

    • Value of 1800s was usually used for previous deployments

Deploy Bounded Gearbox Oracle

Set underlying feed to previously deployed PT TWAP feed Set bound to 1

chevron-rightBalancer V3 LPhashtag
circle-exclamation

Factory address:

  • Plasma: 0x86e67E115f96DF37239E0479441303De0de7bc2b

Last updated