Some variables can be declared as constant
or immutable
to save gas.
profileNFT
variable in LinkRegistry
should be declared as immutable
since it is only set in the constructor once.
FIXEDFEE
variable in LinkRegistry
should be declared as constant
since it has a fix value and it's never changed. Also as a best practice it should be called FIXED_FEE
.
The current variable types use more gas.
Manual Review
slither
Change variable types as mentioned in Vulnerability Details
. The new types won't require reading storage values and that would reduce gas.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelyhood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.