Platform: Code4rena
Start Date: 23/11/2022
Pot Size: $24,500 CANTO
Total HM: 5
Participants: 37
Period: 5 days
Judge: berndartmueller
Total Solo HM: 2
Id: 185
League: ETH
Rank: 31/37
Findings: 1
Award: $13.69
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: Tricko
Also found by: 0xhacksmithh, AkshaySrivastav, Awesome, Beepidibop, Deivitto, DijkstraDev, Dinesh11G, Englave, JC, Rahoz, RaymondFam, ReyAdmirado, SaeedAlipoor01988, Sathish9098, abiih, aphak5010, chaduke, chrisdior4, exolorkistis, gzeon, martin, nicobevi, oyc_109, peritoflores, rotcivegaf
84.7394 CANTO - $13.69
“public” functions never called by the contract should be declared “external” to save gas. Solidity immediately copies array arguments to memory in public functions, while external functions can read directly from the calldata. Memory allocation is expensive, whereas reading from calldata is cheap.
Path: ./src/Turnstile.sol : register(), distributeFees(), assign(), withdraw() Recommendation: Use external instead of public
#0 - c4-judge
2022-11-29T19:15:40Z
berndartmueller marked the issue as grade-b