Juicebox Buyback Delegate - 0xHati'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: 71/72

Findings: 1

Award: $16.19

QA:
grade-b

🌟 Selected for report: 0

🚀 Solo Findings: 0

  1. Inherited from ownable, but it's not used
  2. supportsInterface should call super.supportsInterface() so it also returns true if called with the interfaceId of ERC165 itself. See: OpenZeppelin
  3. uniswapV3SwapCallback doesn't check if the pool is deployed by the canonical UniswapV3Factory Code snippet

It's possible a malicious pool is added which can have bad consequences. Though I think it's informational since only project owners would be able to do that and there are plenty of ways to rug for them. Still it's a good practice to put the checks in places as recommended by the uniswap team.

See uniswap docs

In the implementation you must pay the pool tokens owed for the swap. The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory. amount0Delta and amount1Delta can both be 0 if no tokens were swapped.

#0 - c4-judge

2023-06-02T10:55:05Z

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