Cudos contest - JC's results

Decentralised cloud computing for Web3.

General Information

Platform: Code4rena

Start Date: 03/05/2022

Pot Size: $75,000 USDC

Total HM: 6

Participants: 55

Period: 7 days

Judge: Albert Chon

Total Solo HM: 2

Id: 116

League: COSMOS

Cudos

Findings Distribution

Researcher Performance

Rank: 38/55

Findings: 2

Award: $179.50

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

113.5186 USDC - $113.52

Labels

bug
QA (Quality Assurance)

External Links

  • pause/unpause functionality

The gravity.sol router should have pause/unpause functionality. In case a hack is occuring or an exploit is discovered, the team (or validators in this case) should be able to pause functionality until the necessary changes are made to the system. as discussed here (fork) : https://github.com/code-423n4/2021-08-gravitybridge-findings/issues/15

Awards

65.9807 USDC - $65.98

Labels

bug
G (Gas Optimization)

External Links

Using multiple require statements is cheaper than using && multiple check combinations. There are more advantages, such as easier to read code and better coverage reports.

Tools Used Visual inspection

require( _currentValset.validators.length == _currentValset.powers.length && _currentValset.validators.length == _v.length && _currentValset.validators.length == _r.length && _currentValset.validators.length == _s.length, "Malformed current validator set" );

-> require(_currentValset.validators.length == _currentValset.powers.length); require(_currentValset.validators.length == _v.length); require(_currentValset.validators.length == _r.length); "Malformed current validator set" );

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