QuickSwap and StellaSwap contest - d3e4'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: 72/113

Findings: 1

Award: $52.04

🌟 Selected for report: 0

🚀 Solo Findings: 0

lteConsideringOverflow may return incorrect value as per specification In DataStorage.sol the function lteConsideringOverflow is supposed to return whether a <= b, but if we have indeed a <= b the function will return false if a <= currentTime < b, and if we have b < a the function will return true if b <= currentTime < a.

 

setOwner should be a two-step process setOwner in AlgebraFactory.sol#L77-L81 immediately transfers ownership, which is critical, to the new address. If any mistake is made this cannot be reverted. Consider implementing a two-step process where the new owner is nominated, and then has to accept ownership. Thus the validity of the new address is ensured.

 

Incorrect comment At DataStorage.sol#L393 an timepoint should be a timepoint.

#0 - vladyan18

2022-10-04T16:30:35Z

Please note that

safe for 0 or 1 overflows, a and b must be chronologically before or equal to currentTime

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

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