Assessment reports>Orderly Network>Threat Model>deposit

Function: deposit(VaultTypes.VaultDeposit data)

This allows the vault to deposit to the ledger.

Inputs

  • data

    • Control: Fully controlled by the vault.

    • Constraints: None.

    • Impact: The deposit data to be sent to the ledger.

Branches and code coverage

Intended branches

  • Assumes that the deposit fee is paid by the vault. It is not enforced.

  • Assumes that the VaultDeposit struct is validated prior to calling this function.

  • Forwards the call to the crossChainRelay with the correct parameters.

Negative behavior

  • Should revert if the fee is not paid. Currently not enforced at this level.

  • No one other than the vault can call this function.

Zellic © 2024Back to top ↑