Platform: Code4rena
Start Date: 18/02/2022
Pot Size: $125,000 USDC
Total HM: 13
Participants: 24
Period: 14 days
Judge: GalloDaSballo
Total Solo HM: 6
Id: 88
League: ETH
Rank: 23/24
Findings: 1
Award: $178.49
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: IllIllI
Also found by: 0x1f8b, CertoraInc, TerrierLover, Tomio, WatchPug, d4rk, gzeon, kenta, kyliek, m_smirnova2020, rfa, robee, saian, ye0lde
++i
can save gas
https://github.com/skalenetwork/ima-c4-audit/blob/main/contracts/MessageProxy.sol#L221
// gas cost 34321change to:
for (uint256 i = from; i < to; ++i) {
// gas cost 34271
Tools used: Remix
========================================================================
require
can save gas
https://github.com/skalenetwork/ima-c4-audit/blob/main/contracts/MessageProxy.sol#L216
// gas cost 34324Change to:
require( from < to ); require( to - from <= 10 ); require( to < schainHash,"Range is incorrect");
// gas cost 34305
========================================================================
#0 - yavrsky
2022-03-14T15:10:30Z
Only marginal gas improvements.
#1 - GalloDaSballo
2022-04-28T15:43:53Z
Saves 3 gas per instance
Saves the gas from the && 3 gas
6 gas total