QuickSwap and StellaSwap contest - mahdikarimi's results

A concentrated liquidity DEX with dynamic fees.

General Information

Platform: Code4rena

Start Date: 26/09/2022

Pot Size: $50,000 USDC

Total HM: 13

Participants: 113

Period: 5 days

Judge: 0xean

Total Solo HM: 6

Id: 166

League: ETH

QuickSwap and StellaSwap

Findings Distribution

Researcher Performance

Rank: 77/113

Findings: 1

Award: $52.04

๐ŸŒŸ Selected for report: 0

๐Ÿš€ Solo Findings: 0

Improper Solidity version

according to common best practice you should use solidity 0.7.0 while in AlgebraFactory and other contracts 0.7.6 has been used , unless there is something special about this particular version it is better follow common best practices .

Improper approach

https://github.com/code-423n4/2022-09-quickswap/blob/15ea643c85ed936a92d2676a7aabf739b210af39/src/core/contracts/AlgebraFactory.sol#L61

This code assigns โ€™token0โ€™ and โ€™token1โ€™ even when tokenA and tokenB are already in the proper order. instead you can use this : if (tokenA > token B) (tokenA, tokenB) = (tokenB, tokenA);

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