Platform: Code4rena
Start Date: 07/04/2022
Pot Size: $100,000 USDC
Total HM: 20
Participants: 62
Period: 7 days
Judge: LSDan
Total Solo HM: 11
Id: 107
League: ETH
Rank: 61/62
Findings: 1
Award: $25.78
🌟 Selected for report: 0
🚀 Solo Findings: 0
25.7805 USDC - $25.78
Usage of deprecated chainlink function to get collateral price.
The Chainlink API (latestAnswer) used in the FungibleAssetVaultForDAO contract is deprecated:
This method returns the last value but that value cannot be fully updated. New V3 API is much more complete and allow you to make more checks. For example when was that price updated.
https://docs.chain.link/docs/price-feeds-api-reference/
Manual code review
Use latestRoundData()
function to get the price instead and perform proper checks.
#0 - spaghettieth
2022-04-14T13:01:39Z
Duplicate of #4