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
Rank: 54/55
Findings: 1
Award: $65.82
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: GermanKuber
Also found by: 0v3rf10w, 0x1f8b, 0xDjango, 0xNazgul, 0xf15ers, 0xkatana, AlleyCat, CertoraInc, Dravee, Funen, GimelSec, IllIllI, JC, MaratCerby, WatchPug, Waze, defsec, delfin454000, ellahi, gzeon, hake, hansfriese, ilan, jonatascm, nahnah, oyc_109, peritoflores, rfa, robee, simon135, slywaters, sorrynotsorry
65.8244 USDC - $65.82
https://github.com/code-423n4/2022-05-cudos/blob/main/solidity/contracts/Gravity.sol#L301 https://github.com/code-423n4/2022-05-cudos/blob/main/solidity/contracts/Gravity.sol#L396
before '''
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" );
'''
after '''
uint256 length = _currentValset.validators.length; require(length == _currentValset.powers.length, "Malformed current validator set"); require(length == _v.length, "Malformed current validator set"); require(length == _r.length, "Malformed current validator set"); require(length == _s.length, "Malformed current validator set");
'''