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

non-contract address can be pass

Summary

non-contract address can be pass in `FjordPoints:setStakingContract`
@> function setStakingContract(address _staking) external onlyOwner {
if (_staking == address(0)) {
revert InvalidAddress();
}
staking = _staking;
}

Recommendations

use check to see if the address is contract or not

+ if (_staking.code.length == 0) {
+ revert();
+}
Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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