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
Rank: 25/65
Findings: 1
Award: $107.40
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: 0xhunter
Also found by: BipinSah, Rohan16, Sm4rty, Tomo, fatherOfBlocks, m_Rassska, oyc_109, prasantgupta52, rokinot
setPeriodSize(uint256)
which sets the newPeriodSize for pair. However, the pairs length is not under a limit, thus it causes unbounded gas consumption and from some point it may exceed the hard limits.Contracts:
function setPeriodSize(uint newPeriod) external { require(msg.sender == admin); require(newPeriod <= MaxPeriod); for (uint i; i < allPairs.length; ) { BaseV1Pair(allPairs[i]).setPeriodSize(newPeriod); unchecked {++i;} } }
#0 - nivasan1
2022-09-10T16:21:20Z
duplicate #8