TickerPriceStorage
The TickerPriceStorage contract's purpose is to act as on-chain storage & oracle for use by external contracts. The set function is the only public facing one and can be initiated by anybody.

The Smart Contract API
ITickerPriceStorage
TickerPriceUpdated
event TickerPriceUpdated(string ticker, uint256 newPrice)
set
function set(string ticker, uint256 price) external
Function for updating the price of a token in the contract's storage represented in USD
The price delta has to be larger than 2% of the current storage price and less than 20% of the Chainlink price in order for it to be successfully updated
Parameters
Name
Type
Description
ticker
string
- The ticker symbol of the token whose price is being updated
price
uint256
- The new price for the given ticker
📅 Events
Emits a
TickerPriceUpdated
event
Last updated