Platform: Code4rena
Start Date: 20/01/2022
Pot Size: $50,000 USDC
Total HM: 3
Participants: 35
Period: 7 days
Judge: GalloDaSballo
Total Solo HM: 2
Id: 77
League: ETH
Rank: 28/35
Findings: 1
Award: $3.38
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: sorrynotsorry
Also found by: 0v3rf10w, Dravee, Meta0xNull, WatchPug, byterocket, defsec, robee, sirhashalot, ye0lde
3.377 USDC - $3.38
0v3rf10w
If data can fit into 32 bytes, then you should use bytes32 datatype rather than bytes or strings as it is much cheaper in solidity. Basically, Any fixed size variable in solidity is cheaper than variable size. That will save gas on the contract.
example: On the Exchange.sol contract, string memory variable can be replaced with bytes32 array L#64-65 On the ExchangeFactory.sol contract, string memory variable can be replaced with bytes32 array L#39-40
#0 - GalloDaSballo
2022-02-07T01:59:06Z
Let's just mark as duplicate of #159 because it's effectively the same deal