Open code423n4 opened 3 years ago
function controllerBurnFrom could also skip _approve decrease if the current approval is uint max (unlimited).
That doesn't make sense to me....you still want to decrease the allowance if their approval is max uint? It seems this suggestion re-interprets uint max as a "special value".
hardcoded number 1000 in PrizeSplit could be extracted to a constant variable to improve readability and maintainability.
Makes sense to me.
The first statement may have been true at a time, for certain types of tokens
These tokens wouldn't reduce the allowance if set to type(uint256).max
Removing magic numbers and instead using constants is best practice
Sponsor has applied the change in a subsequent PR
Handle
pauliax
Vulnerability details
Impact
Style issues that you may want to apply or reject, no impact on security. Grouping them together as one submission to reduce waste. Consider fixing or ignoring them, up to you.
function controllerBurnFrom could also skip _approve decrease if the current approval is uint max (unlimited).
hardcoded number 1000 in PrizeSplit could be extracted to a constant variable to improve readability and maintainability.