Skip to content

Discussion - ChainlinkPriceFeed Contingency Plans #46

@steve0xp

Description

@steve0xp

Challenge:
Price manipulation is a common attack vector within DeFi. The protocol would benefit from having a contingency plan for every scenario that we can think of for the ChainlinkPriceFeed failing.

Context:

  • Originally a thought that was brought up through researching Liquity contingencies (see links).
  • Recently spurred on by Niv bringing up uints vs ints from chainlink pricefeeds and if that could mess us up. Especially if it could be negative, what does that mean for us? For now we are implementing a

require(price >= 0 && updatedAt!= 0 && answeredInRound >= roundID, "Invalid chainlink price"); similar to Frax


Useful links to other contingency plans include:

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