Platform: Code4rena
Start Date: 30/11/2021
Pot Size: $30,000 USDC
Total HM: 0
Participants: 21
Period: 3 days
Judge: pauliax
Id: 63
League: ETH
Rank: 19/21
Findings: 1
Award: $7.24
🌟 Selected for report: 0
🚀 Solo Findings: 0
sabtikw
initializing storage variables with default values is unnecessary and increases the gas required for deployment however it might be negligible
TRIBERagequit.sol : storage variables : uint256 public expirationBlock = 0; -> uint256 public expirationBlock uint256 public token1OutBase = 0; -> uint256 public token1OutBase; bool public party0Accepted = false; -> bool public party0Accepted; bool public party1Accepted = false -> bool public party1Accepted; bool public init = false -> bool public init ; bytes32 public merkleRoot = 0x0000000000000000000000000000000000000000000000000000000000000000; --> bytes32 public merkleRoot;
this should reduce deployment gas from 843911 -> 836833
PegExchanger.sol : bool public party0Accepted = false; -> bool public party0Accepted; bool public party1Accepted = false; -> bool public party1Accepted; uint256 public expirationBlock = 0; -> uint256 public expirationBlock;
#0 - elee1766
2021-12-06T04:51:23Z
#157
#1 - pauliax
2021-12-11T09:55:47Z
A duplicate of #157