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

FjordPoints contract doesn't set the staking contract address in the constructor

Summary

FjordPoints contract doesn't set the staking contract address in the constructor.

Vulnerability Details

In FjordPoints constructor should set the staking address as if not set it will be 0 address and all onlyStaking functions will revert. The staking address can be set by an admin but from comment it is expected to be already set and it can cause confusion and invalid transactions.

constructor() ERC20("BjordBoint", "BJB") {
owner = msg.sender;
lastDistribution = block.timestamp;
pointsPerEpoch = 100 ether;
}

Impact

Not setting the staking contract will make all onlyStaking functions revert.

Tools Used

Manual Review

Recommendations

Set the staking address in the constructor.

Updates

Lead Judging Commences

inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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