Fjord Token Staking

DeFiFoundry
20,000 USDC
Submission Details
Severity: high
Valid

A User will lose their staking rewards for current epoch and the rewards will be stuck in the `FjordStaking` contract when the user unstakes completely the position from the previous epoch

Updates

Lead Judging Commences

InAllHonesty Lead Judge
27 days ago
InAllHonesty Lead Judge 26 days ago
Submission Judgement Published
Invalidated
Reason: Design choice

Appeal created

3n0ch Submitter
26 days ago
InAllHonesty Lead Judge
26 days ago
InAllHonesty Lead Judge 23 days ago
Submission Judgement Published
Validated
Assigned finding tags:

`unredeemedEpoch` is set to zero due to a false if condition in `unstake` and `_unstakeVested` function

Users that try to unstake tokens from an earlier epoch after they staked in the current epoch will have their ` unredeemedEpoch` set to 0, leading to them being unable to access the newly staked tokens. Impact: High – Tokens are lost Likelihood: Medium – It happens every time a user performs the respective sequence of calls. It’s not always but it’s also not a low likelihood scenario. It’s normal usage of the protocol, that doesn’t necessarily require special conditions.

Support

FAQs

Can’t find an answer? Join our Discord or follow us on Twitter.