20,000 USDC
View results
Submission Details
Severity: low
Valid

Lack of address(0) check can cause to lose funds forever.

Vulnerability Details

In the constructor of the contract Fees, the _staking is set to staking without checking it for address(0).

Impact

If the staking is set to address(0) and the Fees contract has some balance, It can be lost to address(0) if the public function sellProfits() is called.

Tools Used

Manual Analysis

Recommendations

Check _staking for address(0) before setting it in to staking in the constructor.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.