When migrating the owner users will lose their rewards
When a user migrates the owner due to a lost private key, the rewards belonging to the previous owner remain recorded in their account and cannot be claimed, resulting in the loss of user rewards.\\nAccording to the documentation, `migrateUser()` is used when a user loses their private key to migrate the old vesting owner to a new owner.\\n```\\n    /**\\n     * @notice Migrate owner of vesting. Used when user lost his private key\\n     * @dev Only admin can migrate users vesting\\n     * @param categoryId Category id\\n     * @param vestingId Vesting id\\n     * @param prevUser previous user address\\n     * @param newUser new user address\\n     */\\n```\\n\\nIn this function, the protocol calls `migrateVestingLock()` to obtain a new ID.\\n```\\n    if (lockupId != 0) {\\n            newLockupId = veTRUF.migrateVestingLock(prevUser, newUser, lockupId - 1) + 1;\\n            lockupIds[categoryId][vestingId][newUser] = newLockupId;\\n            delete lockupIds[categoryId][vestingId][prevUser];\\n\\n            newVesting.locked = prevVesting.locked;\\n        }\\n```\\n\\nHowever, in the `migrateVestingLock()` function, the protocol calls `stakingRewards.withdraw()` to withdraw the user's stake, burning points. In the `withdraw()` function, the protocol first calls `updateReward()` to update the user's rewards and records them in the user's account.\\n```\\n    function withdraw(address user, uint256 amount) public updateReward(user) onlyOperator {\\n        if (amount == 0) {\\n            revert ZeroAmount();\\n        }\\n        _totalSupply -= amount;\\n        _balances[user] -= amount;\\n        emit Withdrawn(user, amount);\\n    }\\n```\\n\\nHowever, `stakingRewards.withdraw()` is called with the old owner as a parameter, meaning that the rewards will be updated on the old account.\\n```\\n  uint256 points = oldLockup.points;\\n        stakingRewards.withdraw(oldUser, points);\\n        _burn(oldUser, points);\\n```\\n\\nAs mentioned earlier, the old owner has lost their private key and cannot claim the rewards, resulting in the loss of these rewards.
When migrating the owner, the rewards belonging to the previous owner should be transferred to the new owner.
The user's rewards are lost
```\\n    /**\\n     * @notice Migrate owner of vesting. Used when user lost his private key\\n     * @dev Only admin can migrate users vesting\\n     * @param categoryId Category id\\n     * @param vestingId Vesting id\\n     * @param prevUser previous user address\\n     * @param newUser new user address\\n     */\\n```\\n