If statement in _updateEmission() can be removed #34
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
Reigada
Vulnerability details
Impact
The if statement in _updateEmission() can be removed as the condition is already checked in updateEmission()
https://github.com/code-423n4/2021-11-bootfinance/blob/main/vesting/contracts/AirdropDistribution.sol#L596
https://github.com/code-423n4/2021-11-bootfinance/blob/main/vesting/contracts/InvestorDistribution.sol#L186
Proof of Concept
Tools Used
Manual testing
Recommended Mitigation Steps
Remove the if condition in the _updateEmission() private function
The text was updated successfully, but these errors were encountered: