Platform: Code4rena
Start Date: 18/10/2022
Pot Size: $75,000 USDC
Total HM: 27
Participants: 144
Period: 7 days
Judge: gzeon
Total Solo HM: 13
Id: 170
League: ETH
Rank: 126/144
Findings: 1
Award: $0.00
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: oyc_109
Also found by: 0x040, 0x1f8b, 0x5rings, 0xNazgul, 0xSmartContract, 0xZaharina, 0xsam, 0xzh, 2997ms, Amithuddar, Aymen0909, B2, Bnke0x0, Deivitto, Diana, Dinesh11G, Franfran, JC, JrNet, Jujic, KingNFT, KoKo, Mathieu, Metatron, Mukund, Olivierdem, PaludoX0, Pheonix, Picodes, RaymondFam, RedOneN, ReyAdmirado, Rolezn, Saintcode_, Satyam_Sharma, Shinchan, Tagir2003, Tomio, Waze, Yiko, __141345__, adriro, ajtra, aysha, ballx, beardofginger, bobirichman, brgltd, bulej93, catchup, catwhiskeys, cdahlheimer, ch0bu, chaduke, chrisdior4, cryptostellar5, cylzxje, d3e4, delfin454000, dharma09, djxploit, durianSausage, emrekocak, erictee, exolorkistis, fatherOfBlocks, gianganhnguyen, gogo, halden, hxzy, i_got_hacked, iepathos, karanctf, leosathya, lucacez, lukris02, lyncurion, m_Rassska, martin, mcwildy, mics, nicobevi, peanuts, peiw, rbserver, ret2basic, rotcivegaf, ryshaw, sakman, sakshamguruji, saneryee, sikorico, skyle, svskaushik, tnevler, vv7, w0Lfrum, zishansami
0 USDC - $0.00
If the string can fit into 32 bytes, then bytes32
 is cheaper than string
. string
 is a dynamically sized-type, which has current limitations in Solidity compared to a statically sized variable. This means extra gas is spent upon deployment and the constant is read every time.
Instances include:
enforcer/PA1D.sol:43
enforcer/PA1D.sol:44
enforcer/PA1D.sol:45
Saves 6 gas per instance if using assembly to check for address(0)
e.g.
assembly { Â if iszero(_addr) { Â mstore(0x00, "zero address") Â revert(0x00, 0x20) Â } }
Instances include:
HolographOperator.sol:234
enforcer/HolographERC20.sol:521
enforcer/HolographERC20.sol:522
enforcer/HolographERC20.sol:528
enforcer/HolographERC20.sol:585
enforcer/HolographERC20.sol:596
enforcer/HolographERC20.sol:597
enforcer/HolographERC721.sol:320
enforcer/HolographERC721.sol:540
enforcer/HolographERC721.sol:590
enforcer/HolographERC721.sol:717
enforcer/HolographERC721.sol:771
Instances include:
HolographOperator.sol:157
module/LayerZeroModule.sol:175
module/LayerZeroModule.sol:194
Saves 16 gas per instance. If you're using the Optimizer at 200, instead of using the && operator in a single require statement to check multiple conditions, multiple require statements with 1 condition per require statement should be used to save gas:
HolographOperator.sol:758