overlay-market / v1-core

Core smart contracts of Overlay V1
MIT License
41 stars 13 forks source link

Check stale price feed #162

Closed magnetto90 closed 8 months ago

magnetto90 commented 8 months ago

This post from Cyfrin alerts about common errors when using Chainlink Feeds. The following PR set an strategy to check if a price is stale or not based on our expected update time.

Had to change Brownie test to add the new parameters.

TODO: Check if is necessary to put an upper limit to Heartbeat

magnetto90 commented 8 months ago

To check the sequencer we should use this contract, that may change its state only when the sequencer stops or starts.

https://arbiscan.io/address/0xFdB631F5EE196F0ed6FAa767959853A9F217697D

image