Fujicracy / fuji-v2

Cross-chain money market aggregator
https://fuji-v2-frontend.vercel.app
15 stars 10 forks source link

Replace MockOracle with real Oracle in ForkingSetup #264

Closed pedrovalido closed 1 year ago

pedrovalido commented 1 year ago

The forking setup used in our tests gets data from hardcoded prices in a MockOracle. The goal is to replace it with IFujiOracle to have real time prices.

pedrovalido commented 1 year ago

Note to self: FujiOracle constructor takes address[] assets and address[] priceFeeds as arguments. This array of priceFeeds should be an array of Chainlink contract addresses

pedrovalido commented 1 year ago

Note to self: In chainlink documentation there are several addresses https://docs.chain.link/data-feeds/price-feeds/addresses#Ethereum%20Mainnet

brozorec commented 1 year ago

New contract that ForkingSetup inherits from that should contain a mapping:

chain domain -> token addresses[] chain domain -> feed addresses[]

or

chain domain -> token -> feed