The FjordPoints contract is deployed with the staking address uninitialized. This design choice leads to a temporary loss of core functionality.
The 'staking' address is not set in the constructor when the comment on the constructor stated otherwise:
@dev Sets the staking contract address and initializes the ERC20 token.
Core functions 'onStaked' and 'onUnstaked' are protected by the 'onlyStaking' modifier. The 'onlyStaking' modifier reverts if the caller is not the staking address.
With 'staking' set to the zero address at deployment, all calls to 'onStaked' and 'onUnstaked' will revert. The contract cannot record staking or unstaking activities until the staking address is set.
Manual review
Modify the constructor to accept the staking address as a parameter:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.