Function: retrieveDeposit(DepositRequest req)
This cancels and retrieves pending ERC-20 deposits.
Inputs
req
Control: Arbitrarily set by caller.
Constraints: Digest must be in outstanding deposit requests.
Impact: Outstanding deposit request cleared and sends back tokens.
Branches and code coverage
Intended branches
Successfully retrieves deposit.
Negative behavior
Caller is not spender.
Deposit was not in outstanding deposit requests.