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

`sellProfits` is inaccessible by setting immutable variable `WETH` to `address(0)`

Vulnerability Details

As there is missing address(0) check for immutable variables at Fees.sol’s constructor, malicious actor can set WETH to address(0) and makes sellProfits unusable.

Impact

Causes undermining the profit distribution mechanism and disrupts intended functionality of the contract.

Tools Used

Manual Code Review

Recommendations

Add zero-address checks

constructor(address _weth, address _staking) {
+ require(_weth != address(0), "weth address can't be address(0)");
WETH = _weth;
staking = _staking;
}

Support

FAQs

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