Unnecessary internal function calls #296
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
WatchPug
Vulnerability details
https://github.com/code-423n4/2021-11-malt/blob/c3a204a2c0f7c653c6c2dda9f4563fd1dc1cecf3/src/contracts/AbstractRewardMine.sol#L179-L191
https://github.com/code-423n4/2021-11-malt/blob/c3a204a2c0f7c653c6c2dda9f4563fd1dc1cecf3/src/contracts/AbstractRewardMine.sol#L107-L109
In
AbstractRewardMine.sol#_handleStakePadding()
, at L180, the internal function call tototalStakePadding()
is unnecessary, which can be replaced by direct storage read to save gas.The same issue exists in
_getFullyPaddedReward()
.The text was updated successfully, but these errors were encountered: