SequencerChainlinkOracle
Last updated
Oracle to fetch price using chainlink oracles on L2s with sequencer
L2 Sequencer feed
contract AggregatorV3Interface sequencerL2 Sequencer grace period
uint256 GRACE_PERIOD_TIMEContract constructor @param _sequencer L2 sequencer @custom:oz-upgrades-unsafe-allow constructor
constructor(contract AggregatorV3Interface _sequencer) publicGets the price of a asset from the chainlink oracle
Parameters
asset
address
Address of the asset
Return Values
[0]
uint256
Price in USD from Chainlink or a manually set price for the asset
Last updated
function getPrice(address asset) public view returns (uint256)
