Platform: Code4rena
Start Date: 15/03/2024
Pot Size: $60,500 USDC
Total HM: 16
Participants: 43
Period: 21 days
Judge: hansfriese
Total Solo HM: 5
Id: 348
League: ETH
Rank: 29/43
Findings: 1
Award: $67.25
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: Infect3d
Also found by: Evo, LinKenji, XDZIBECX, falconhoof, foxb868, ilchovski, klau5, nonseodion
67.2468 USDC - $67.25
useing a cached oracle price (LibOracle.getPrice(p.asset)) with a 15-minute validity window to enhance the efficiency of the hint system for order placement. This design choice can lead to scenarios where the cached price does not reflect the current market conditions accurately due to volatility in the cryptocurrency markets The discrepancy between the cached oracle price and the actual market price at the time of redemption can result in unfair redemption outcomes. Proposers of redemptions might either benefit unduly or suffer losses due to the stale price information,
here is an example show the bug : Initial Cached Oracle Price: 100 Elapsed Time Since Last Oracle Update: 10 minutes (within the 15-minute cache window) Market Price: 120 Proposer's Price View: 118 (The price proposer believes to be accurate based on their information)
manual review
need to add update mechanism that adjusts the frequency of oracle price updates based on observed market volatility.
Other
#0 - c4-pre-sort
2024-04-06T06:02:53Z
raymondfam marked the issue as sufficient quality report
#1 - c4-pre-sort
2024-04-06T06:03:05Z
raymondfam marked the issue as duplicate of #114
#2 - raymondfam
2024-04-06T06:03:39Z
See #114.
#3 - c4-judge
2024-04-11T16:12:31Z
hansfriese marked the issue as satisfactory