Platform: Code4rena
Start Date: 24/03/2022
Pot Size: $75,000 USDC
Total HM: 15
Participants: 59
Period: 7 days
Judge: gzeon
Id: 103
League: ETH
Rank: 46/59
Findings: 2
Award: $175.12
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: hake
Also found by: 0v3rf10w, 0xDjango, 0xkatana, BouSalman, CertoraInc, Dravee, Hawkeye, IllIllI, JMukesh, Jujic, Kenshin, PPrieditis, Picodes, PranavG, Ruhum, SolidityScan, VAD37, WatchPug, aga7hokakological, catchup, csanuragjain, cthulhu_cult, defsec, dimitri, hickuphh3, hubble, hyh, kenta, kirk-baird, obront, peritoflores, rayn, robee, saian, samruna, shenwilly, shw, sorrynotsorry, tchkvsky, teryanarmen, ych18
113.5781 USDC - $113.58
Declared event in WithdrawFacet.sol doesn't match emitted event
tchkvsky
Declared event in #L12 of WithdrawFacet.sol
doesn't match emitted event (called parameters) in #L37
This could lead to logging incorrect transactions
event LogWithdraw(address indexed _assetAddress, address _from, uint256 amount);
and
emit LogWithdraw(sendTo, _assetAddress, _amount);
does not match
Manual review
Consider changing (#L12)
event LogWithdraw(address indexed _assetAddress, address _from, uint256 amount);
to
event LogWithdraw(address indexed _assetAddress, address _to, uint256 _amount);
AND (#L37)
emit LogWithdraw(sendTo, _assetAddress, _amount);
to
emit LogWithdraw(_assetAddress, sendTo, _amount);
Useful links:
🌟 Selected for report: Dravee
Also found by: 0v3rf10w, 0xDjango, 0xNazgul, 0xkatana, ACai, CertoraInc, FSchmoede, Funen, Hawkeye, IllIllI, Jujic, Kenshin, PPrieditis, Picodes, SolidityScan, TerrierLover, Tomio, WatchPug, catchup, csanuragjain, defsec, dimitri, hake, hickuphh3, kenta, minhquanym, obront, peritoflores, rayn, rfa, robee, saian, samruna, tchkvsky, teryanarmen, ych18
61.5429 USDC - $61.54
Prefix increments are cheaper than postfix increments.
tchkvsky
These functions use not using prefix increments (++x
)
Using prefix increment is more gas efficient
Manual review
Consider using prefix increments (++i) to save gas
#0 - H3xept
2022-04-01T10:03:07Z
We internally decided to ignore prefix increments for now.