Basin - MIQUINHO's results

A composable EVM-native decentralized exchange protocol.

General Information

Platform: Code4rena

Start Date: 03/07/2023

Pot Size: $40,000 USDC

Total HM: 14

Participants: 74

Period: 7 days

Judge: alcueca

Total Solo HM: 9

Id: 259

League: ETH

Basin

Findings Distribution

Researcher Performance

Rank: 64/74

Findings: 1

Award: $7.89

Gas:
grade-b

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

7.8853 USDC - $7.89

Labels

bug
G (Gas Optimization)
grade-b
low quality report
G-22

External Links

[G-01] Use Do While of instead for in some functions

Using do while instead of for in some functions may save some gas

Example

Before

for(uint256 i;i < _tokens.length;++i;) {
    reserves[i] = _tokens[i].balanceOf(address(this));
}

After

uint256 i; do { reserves[i] = _tokens[i].balanceOf(address(this)); unchecked { ++i; } } while(i < _tokens.length);

Functions Links

https://github.com/code-423n4/2023-07-basin/blob/c1b72d4e372a6246e0efbd57b47fb4cbb5d77062/src/Well.sol#L382 https://github.com/code-423n4/2023-07-basin/blob/c1b72d4e372a6246e0efbd57b47fb4cbb5d77062/src/Well.sol#L452 https://github.com/code-423n4/2023-07-basin/blob/c1b72d4e372a6246e0efbd57b47fb4cbb5d77062/src/Well.sol#L593 https://github.com/code-423n4/2023-07-basin/blob/c1b72d4e372a6246e0efbd57b47fb4cbbd77062/src/Well.sol#L632 https://github.com/code-423n4/2023-07-basin/blob/c1b72d4e372a6246e0efbd57b47fb4cbb5d77062/src/Well.sol#L760

#0 - c4-pre-sort

2023-07-12T09:59:38Z

141345 marked the issue as low quality report

#1 - c4-judge

2023-08-05T11:02:35Z

alcueca marked the issue as grade-c

#2 - c4-judge

2023-08-05T11:02:40Z

alcueca 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