Platform: Code4rena
Start Date: 24/03/2023
Pot Size: $49,200 USDC
Total HM: 20
Participants: 246
Period: 6 days
Judge: Picodes
Total Solo HM: 1
Id: 226
League: ETH
Rank: 230/246
Findings: 1
Award: $2.27
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: adriro
Also found by: 0xMirce, 0xRajkumar, 0xepley, BPZ, Bahurum, Bauer, Co0nan, Emmanuel, Franfran, HollaDieWaldfee, IgorZuk, MiloTruck, NoamYakov, RedTiger, Ruhum, T1MOH, Tricko, ad3sh_, auditor0517, bin2chen, carrotsmuggler, eyexploit, handsomegiraffe, igingu, jasonxiale, koxuan, lukris02, monrel, nadin, peanuts, rbserver, rvierdiiev, shaka, sinarette, tnevler, y1cunhui
2.2713 USDC - $2.27
The function returns the price of WstETH in terms of stETH. The underlying token which we desire is ETH. Since stETH does not have the same value as WETH the output price incorrect.
function ethPerDerivative(uint256 _amount) public view returns (uint256) { return IWStETH(WST_ETH).getStETHByWstETH(10 ** 18); }
Manual review
Add extra steps to approximate the rate for converting stETH to ETH.
#0 - c4-pre-sort
2023-04-01T13:54:09Z
0xSorryNotSorry marked the issue as low quality report
#1 - c4-sponsor
2023-04-07T22:31:36Z
elmutt marked the issue as sponsor confirmed
#2 - c4-judge
2023-04-23T11:03:01Z
Picodes marked the issue as duplicate of #588
#3 - c4-judge
2023-04-23T11:03:09Z
Picodes changed the severity to 3 (High Risk)
#4 - c4-judge
2023-04-23T11:03:20Z
Picodes marked the issue as partial-50