Unstaking should succeed and reward CRED if applicable, assuming the user can receive coins.
The specific issue is that if the user isn't registered for CRED, mint attempts to destroy non-zero coins with destroy_zero, causing an abort and blocking unstake.
Likelihood:
Medium
User unstakes after staking >=1 day.
User has not called register for CRED.
Impact: High
Unstake transaction aborts entirely.
User cannot retrieve staked NFT without prior registration.
Stake for >1 day without registering for CRED.
Call unstake: aborts at destroy_zero with non-zero coins.
Optimized and recommended for the observed vulnerability.
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.
The contest is complete and the rewards are being distributed.