Canto Dex Oracle contest - a12jmx's results

Execution layer for original work.

General Information

Platform: Code4rena

Start Date: 07/09/2022

Pot Size: $20,000 CANTO

Total HM: 7

Participants: 65

Period: 1 day

Judge: 0xean

Total Solo HM: 3

Id: 159

League: ETH

Canto

Findings Distribution

Researcher Performance

Rank: 49/65

Findings: 1

Award: $39.22

🌟 Selected for report: 0

🚀 Solo Findings: 0

Contract: BaseV1-core.sol

It is unnecessary to initialize variables in for loops as they get set to 0 by default in:

line 229 line 264

Recommendation:

for (uint i; i < _reserves0.length; ++i) { for (uint i; i < _totalSupplyAvg.length; ++i) {

2.

Contract: BaseV1-core.sol

It is unnecessary to initialize variables as they get set to 0 by default in:

line 244 line 245 line 277 line 278

Recommendation:

uint nextIndex; uint index;

3.

Contract: BaseV1-core.sol

There are missing spaces in the following lines of code:

line 225 line 248 line 281

Recommendation:

(uint[] memory _reserves0, uint[] memory _reserves1) = sampleReserves(granularity, 1); for(; i < lastIndex; i += window) {

All of the above will also bring consistency throughout the code of both contracts.

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