wstETHPriceProviderL2
Overview
License: MIT
Price provider that uses chainlink
This contract is used to get the price of wstETH in USD.
Events info
SetSequencerUptimeFeed
Emitted when the address of the L2 sequencer uptime feed is set.
Parameters:
newSequencerUptimeFeed
address
The address of the new L2 sequencer uptime feed.
SetGracePeriodTime
Emitted when the grace period time is set.
Parameters:
newGracePeriodTime
uint32
The new grace period time value.
State variables info
gracePeriodTime (0xd5bd765c)
sequencerUptimeFeed (0xa7264705)
Functions info
setSequencerUptimeFeed (0xb8f44963)
Sets proxy addresses for the L2 sequencer feeds. Caller must be the moderator.
Parameters:
newSequencerUptimeFeed
address
The address of new SequencerUptimeFeed contract.
setGracePeriodTime (0x21b90245)
Sets the grace period after the sequencer is backed up. Caller must be the moderator.
Parameters:
newGracePeriodTime
uint32
The new grace period time value.
getLatestPrice (0x16345f18)
ReturnS the latest price after performing sanity check and staleness check.
Parameters:
aggregatorPath_
address
The address of chainlink aggregator contract.
Return values:
answer
uint256
The latest price (answer).
Last updated