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.
Last updated
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.
Last updated
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
📅 Events
Emits a TickerPriceUpdated
event
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