Function: depositWithFee(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
Assure that
msg.valuecovers for the necessary estimated gas fee. Currently it is not checked.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.