ismailbangee / smart-contracts

This repository will help community to think about new use cases and create smart contracts for those use cases.
20 stars 11 forks source link

Check for stale oracle data #11

Closed pauliax closed 2 years ago

pauliax commented 2 years ago

There were no checks if the return value indicates stale data. This could lead to stale prices according to the Chainlink documentation: “if answeredInRound < roundId could indicate stale data.” “A timestamp with zero value means the round is not complete and should not be used.”

ismailbangee commented 2 years ago

Accepted.