Payouts
3rd Places
Top 10
Top 25
All
Code4rena
CodeHawks
Mar '24
Jan '24
Jul '23
gas
Multiple accesses of a mapping/array should use a local variable cache.
gas
+= and -= are more expensive
gas
Uncheck Arithmetic where overflow/underflow impossible
gas
Use `!= 0` rather than `> 0`
gas
Unnecessary If condition in update() of Staking.sol
gas
Use assembly to check for `address(0)`
gas
Use if + custom errors instead of using require + string
gas
Don't initialize `uint/int` variables with default value
gas
Mixed usage of `int`/`uint` with `int256`/`uint256`
gas
Multiple `address` mappings can be combined into a single mapping of an `address` to a `struct`, where appropriate
gas
Using `x >> constant(uint)` with the right shift operator is a more gas-efficient
9.55 USDC • 4 total findings • CodeHawks • souilos
#80
Jun '23
May '23