ekonomia-tech / protocol-alpha

Alpha version of a DeFi stablecoin protocol
GNU General Public License v3.0
4 stars 0 forks source link

Discussion - ChainlinkPriceFeed Contingency Plans #46

Open steve0xp opened 1 year ago

steve0xp commented 1 year ago

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:

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


Useful links to other contingency plans include:

steve0xp commented 1 year ago

Notes from past discussion on restrictions to ChainlinkPriceFeed.sol:

Deemed not necessary since a DDOS attack would be very costly to an attacker, and really it's just going to delay our calls to the PriceFeed.sol - that said, open to Dave's thoughts on this for sure.