Function: cancelWithdraw(uint256 id)
This function allows a user to cancel their own previously queued withdrawal request, which is identified by the id parameter.
Inputs
idControl: Full control.
Constraints:
idmust correspond to aqueuedWithdrawinitiated by the caller.Impact: Affects
queuedShares,queuedWithdraw, and_withdrawQueue.
Branches and code coverage
Intended branches
Removes the specified withdrawal from the
queuedWithdrawmapping.Decreases the user's total
queuedSharesby the amount of shares associated with the canceled withdrawal.Updates the
_withdrawQueuedata.Emits a
WithdrawCanceledevent.
Negative behavior
Reverts if the user tries to cancel a withdrawal they do not own.