It is stated in documentation by the Fjord team, that user should be able to complete their claim request three epochs after the request is created. However, there's an edge case that it requires a minimum of four epochs.
When finalizing a claim request using completeClaimRequest, the contract verifies whether at least four epochs have passed since the request was initiated. However, the intended behavior is to allow completion after three epochs.
For example, if a user initiates a claim request in epoch 3, they should be eligible to complete the claim in epoch 6 or later. For now, the staking contract reverts the request if the difference between the current epoch and the request epoch is less than or equal to claimCycle (3 epochs).
That means:
Below is a POC by foundry:
This breaks one of the system invariants. Users must wait four weeks to complete a claim request, rather than the intended three weeks.
Manual Review
Update the conditional to make sure users can claim at right moment.
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.