TickerUSDFeedRegistry

The TickerUSDFeedRegistry is the single source of truth for tracking the current feed addresses as well as keeping the relayers in sync on what tickers should be kept track of.

The Smart Contract API

ITickerUSDFeedRegistry

TickerFeedUpdated

event TickerFeedUpdated(string ticker, address feedAddress)

Emitter when a new ticker and its corresponding feed are added

getTickerFeed

function getTickerFeed(string ticker) external view returns (address feedAddress)

Function for fetching the Chainlink USD Price feed address for a given ticker

Parameters

NameTypeDescription

ticker

string

- The ticker symbol

Return Values

NameTypeDescription

feedAddress

address

- Address of the Ticker<>USD Chainlink price feed

setTickerFeed

function setTickerFeed(string ticker, address feedAddress) external

Function for adding new ticker and its corresponding feed address to the registry

Parameters

NameTypeDescription

ticker

string

- The ticker symbol

feedAddress

address

- Address of the Ticker<>USD Chainlink price feed

📅 Events

  • Emits a TickerFeedUpdated event

Last updated