Platform: Code4rena
Start Date: 30/04/2024
Pot Size: $112,500 USDC
Total HM: 22
Participants: 122
Period: 8 days
Judge: alcueca
Total Solo HM: 1
Id: 372
League: ETH
Rank: 118/122
Findings: 1
Award: $0.00
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: Sathish9098
Also found by: 0x73696d616f, 0xCiphky, 0xmystery, ABAIKUNANBAEV, Bauchibred, BiasedMerc, Fassi_Security, FastChecker, GalloDaSballo, GoatedAudits, K42, KupiaSec, LessDupes, Limbooo, ReadyPlayer2, Rhaydden, SBSecurity, Sabit, Sparrow, WildSniper, ZanyBonzy, adam-idarrha, adeolu, araj, aslanbek, atoko, b0g0, carlitox477, crypticdefense, fyamf, gesha17, gjaldon, grearlake, gumgumzum, hihen, honey-k12, hunter_w3b, inzinko, jesjupyter, jokr, kennedy1030, kind0dev, kinda_very_good, ladboy233, lanrebayode77, oakcobalt, oualidpro, pauliax, rbserver, t0x1c, tapir, underdog, xg, zzykxx
0 USDC - $0.00
RenzoOracle
fetches prices from Chainlink. The primary impact is the potential use of stale price data due to very long heartbeat rate of the tokens in use (stETH24 is 24hours on chainlink), which can significantly affect the accuracy and reliability of the contract's operations, especially in volatile markets. This discrepancy could also introduce inefficiencies in how the contract operates, as it waits for a long period before considering the data stale
function getMintRate() public view returns (uint256, uint256) { (, int256 price, , uint256 timestamp, ) = oracle.latestRoundData(); if (timestamp < block.timestamp - MAX_TIME_WINDOW) revert OraclePriceExpired(); // scale the price to have 18 decimals uint256 _scaledPrice = (uint256(price)) * 10 ** (18 - oracle.decimals()); if (_scaledPrice < 1 ether) revert InvalidOraclePrice(); return (_scaledPrice, timestamp); }
Manual review
Use the stETH/USD oracle instead because it has a 1-hour heartbeat.
Oracle
#0 - c4-judge
2024-05-17T13:14:57Z
alcueca marked the issue as not a duplicate
#1 - c4-judge
2024-05-17T13:15:04Z
alcueca changed the severity to QA (Quality Assurance)
#2 - c4-judge
2024-05-17T13:15:08Z
alcueca marked the issue as grade-a
#3 - c4-judge
2024-05-17T13:21:24Z
alcueca marked the issue as unsatisfactory: Invalid
#4 - c4-judge
2024-05-20T03:02:54Z
This previously downgraded issue has been upgraded by alcueca
#5 - c4-judge
2024-05-20T03:05:27Z
alcueca marked the issue as duplicate of #8
#6 - c4-judge
2024-05-23T17:24:53Z
alcueca changed the severity to QA (Quality Assurance)
#7 - c4-judge
2024-05-23T17:24:56Z
alcueca marked the issue as grade-a