-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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
uintsvsintsfromchainlink pricefeedsand 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:
- Liquity - good detailed outline on scenarios and how they manage things: https://docs.google.com/spreadsheets/d/18fdtTUoqgmsK3Mb6LBO-6na0oK-Y9LWBqnPCJRp5Hsg/edit#gid=0
- MakerDAO contingency: https://developer.makerdao.com/feeds/
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels