Basin - Strausses'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: 65/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-25

External Links

https://github.com/code-423n4/2023-07-basin/blob/c1b72d4e372a6246e0efbd57b47fb4cbb5d77062/src/pumps/MultiFlowPump.sol#L54

In the constructor, all checks for invalid inputs better be done in the beginning to save more gas in case of fail tx (revert)

Fix:

constructor(bytes16 _maxPercentIncrease, bytes16 _maxPercentDecrease, uint256 _blockTime, bytes16 _alpha) { if (_maxPercentDecrease > ABDKMathQuad.ONE) { revert InvalidMaxPercentDecreaseArgument(_maxPercentDecrease); } if (_alpha > ABDKMathQuad.ONE) { revert InvalidAArgument(_alpha); } ...rest of the code }

#0 - c4-pre-sort

2023-07-13T13:18:09Z

141345 marked the issue as low quality report

#1 - c4-judge

2023-08-05T10:56:37Z

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