Assessment reports>Orderly Network>Threat Model>withdraw

Function: withdraw(VaultTypes.VaultWithdraw data)

This allows the vault to withdraw funds.

Inputs

  • data

    • Control: Fully controlled by the vault.

    • Constraints: None.

    • Impact: The data to be used for the withdrawal.

Branches and code coverage

Intended branches

  • Assume that the WithdrawData struct has been properly validated before calling this function.

  • Assure that the caller is the vault.

  • Forward the withdrawal to the crossChainRelay.

Negative behavior

  • Should not allow calling the function if the withdrawal data is not valid. This is currently not enforced at this contract level.

  • Should not be callable by anyone other than the vault.

Zellic © 2024Back to top ↑