Closed tolbrino closed 2 years ago
Currently, we have disabled claim
and sync
to minimize the issue.
On the SC level, when calling unlock
, it first _sync
(L. 1223) the account stake/reward and then _claim
(L.1227) the reward, before transferring back the staked xHOPR
token and HoprBoost
NFTs.
_claim
forbids accounts with 0
increment in rewards (L.1319) to be further executed. This creates issue when a staker manually calls claim()
after PROGRAM_END
(1642424400
). If a staker did call claimRewards()
after PROGRAM_END
and before calling unlock()
, it's not possible to release their stake, or NFT.
Luckily, NFTs can be recovered through reclaimErc721Tokens()
.
A PR for this issue is pending. Next steps are
Since the rewards were drained nobody can run into the situation anymore. Further steps are handled in #46 . Thus I am closing this issue.
When a user has claimed rewards before, the unlock produces an error and doesn't complete. The UI doesn't show any indication of an error occuring.