Juicebox Buyback Delegate - turvy_fuzz's results

Thousands of projects use Juicebox to fund, operate, and scale their ideas & communities transparently on Ethereum.

General Information

Platform: Code4rena

Start Date: 18/05/2023

Pot Size: $24,500 USDC

Total HM: 3

Participants: 72

Period: 4 days

Judge: LSDan

Id: 237

League: ETH

Juicebox

Findings Distribution

Researcher Performance

Rank: 44/72

Findings: 1

Award: $16.19

QA:
grade-b

🌟 Selected for report: 0

🚀 Solo Findings: 0

Unnecessary calculation and extra stack assignment

_reservedToken is calculated by _amountReceived - _nonReservedToken but _nonReservedTokenInContract is also calculated by _amountReceived - _reservedToken however the value of _amountReceived and _reservedToken is still the same and never got changed before that, which means _nonReservedTokenInContract will still be same as _nonReservedToken. Therefore unnecessary operation and extra stack assignment https://github.com/code-423n4/2023-05-juicebox/blob/main/juice-buyback/contracts/JBXBuybackDelegate.sol#L312

Recommendation: remove unnecessary code line and use _nonReservedToken instead

#0 - c4-judge

2023-06-02T10:59:55Z

dmvt marked the issue as grade-b

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter