DeFiFoundry
20,000 USDC
View results
Submission Details
Severity: medium
Invalid

The FjordStaking contract must be redeployed if the FjordPoints contract has errors

Vulnerability Details

The FjordStaking contract doesn't have a function to update the FjordPoints contract address stored in the FjordStaking::points state variable.

Impact

The FjordStaking contract must be redeployed if the FjordPoints contract has errors.

Recommendations

Add a function that allows the FjordStaking::owner to update the FjordPoints contract address:

function setPoints(address _points) external onlyOwner {
if (_points == address(0)) revert InvalidZeroAddress();
points = IFjordPoints(_points);
}
Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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