Assessment reports>Nocturne>Threat Model>retrieveETHDeposit

Function: retrieveETHDeposit(DepositRequest req)

This cancels and retrieves pending ETH deposit.

Inputs

  • req

    • Control: Arbitrarily set by caller.

    • Constraints: Digest must be in outstanding deposit requests.

    • Impact: Outstanding deposit request cleared and sends back ETH.

Branches and code coverage

Intended branches

  • Successfully retrieves ETH deposit.

Negative behavior

  • Caller is not spender.

  • Deposit type was not ETH.

  • Deposit was not in outstanding deposit requests.

Zellic © 2024Back to top ↑