Platform: Code4rena
Start Date: 01/07/2022
Pot Size: $75,000 USDC
Total HM: 17
Participants: 105
Period: 7 days
Judge: Jack the Pug
Total Solo HM: 5
Id: 143
League: ETH
Rank: 9/105
Findings: 1
Award: $1,929.63
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: 0x52
Also found by: DimitarDimitrov
1929.6275 USDC - $1,929.63
Now we can add price feed for example for USD/EUR but also for EUR/USD. This is unnecessary because in the priceFor() method it is also checked for an inverted pair.
Here we check inverse feed: https://github.com/jbx-protocol/juice-contracts-v2-code4rena/blob/828bf2f3e719873daa08081cfa0d0a6deaa5ace5/contracts/JBPrices.sol#L72-L76
Code analysis
if (feedFor[_currency][_base] != IJBPriceFeed(address(0)) || feedFor[_base][_currency] != IJBPriceFeed(address(0))) revert PRICE_FEED_ALREADY_EXISTS();
#0 - mejango
2022-07-12T19:30:24Z
dup #79