SequencerChainlinkOracle
Sequencer Chain Link Oracle
Oracle to fetch price using chainlink oracles on L2s with sequencer
Solidity API
sequencer
L2 Sequencer feed
GRACE_PERIOD_TIME
L2 Sequencer grace period
constructor
Contract constructor @param _sequencer L2 sequencer @custom:oz-upgrades-unsafe-allow constructor
getPrice
Gets the price of a asset from the chainlink oracle
Parameters
Name
Type
Description
asset
address
Address of the asset
Return Values
Name
Type
Description
[0]
uint256
Price in USD from Chainlink or a manually set price for the asset
Last updated