Function: deposit(uint256 amount, bytes)
This function allows the InfiniCard Vault to deposit a specified amount of underlying tokens into the strategy.
Inputs
amountControl: Controlled by the caller with
INFINI_CARD_VAULT.Constraints: None.
Impact: The amount of tokens will be deposited into the strategy.
bytesControl: Controlled by the caller with
INFINI_CARD_VAULT.Constraints: None.
Impact: Not used.
Branches and code coverage
Intended branches
Deposits the amount of tokens when sufficient underlying tokens are available.
Negative behavior
Reverts if the caller does not have the
INFINI_CARD_VAULTrole.Reverts if the balance of underlying tokens is insufficient.