Uniswap / v3-staker

Canonical liquidity mining contract for Uniswap V3
https://uniswap.org
GNU General Public License v3.0
353 stars 199 forks source link

ToB: Code Quality Recommendations #206

Closed ewilz closed 3 years ago

ewilz commented 3 years ago

Code Quality Recommendations The following recommendations are not associated with specific vulnerabilities. However, they enhance code readability and may prevent the introduction of vulnerabilities in the future.

moodysalem commented 3 years ago

IMO the only remaining things we should implement are the two documentation notes

Specify the expected behavior of claimReward when the amount requested is zero

and

Properly document the design decision on the usage of the fields in onERC721Received

The others are not important or deliberate (e.g. splitting liquidity into two slots is a gas optimization)