Skip to content

Chainlink oracles don't detect stale prices #17

Open

Description

@alcueca

The current implementation of oracles reading from chainlink feeds don't follow the recommendation of checking that the elapsed time since the last update is below a user-defined limit.

To fix, ignore the chainlink recommendation, which is useless, and instead set minAnswer and maxAnswer limits in the oracle that are somewhat more conservative than the ones in the OffchainAggregator behind the EACAggregatorProxy that we call.

If the price leaves the minAnswer/maxAnswer range in the OffchainAggregator, it stops reporting and the price feed goes stale. By reverting in the more conservative minAnswer/maxAnswer range in our own ChainlinkMultiOracle (and all other oracles reading from Chainlink) we will be considerably more secure.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions