Function: deposit(VaultTypes.VaultDeposit data)
This allows the vault to deposit to the ledger.
Inputs
dataControl: 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
VaultDepositstruct is validated prior to calling this function.Forwards the call to the
crossChainRelaywith 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.