AbstractRewardMine._handleStakePadding logic cases can be separated and function simplified #131
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
hyh
Vulnerability details
Impact
Gas is overspent on operations.
Proof of Concept
The function contains two non-intersecting logic pathways, which can be separated to lighten calculations.
https://github.com/code-423n4/2021-11-malt/blob/main/src/contracts/AbstractRewardMine.sol#L179
Recommended Mitigation Steps
Now:
To be:
The text was updated successfully, but these errors were encountered: