Function: deposit(uint256 amount, bytes)
This function allows the InfiniCard Vault to deposit a specified amount of underlying tokens into the strategy.
Inputs
amount
Control: Controlled by the caller with
INFINI_CARD_VAULT
.Constraints: None.
Impact: The amount of tokens will be deposited into the strategy.
bytes
Control: 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_VAULT
role.Reverts if the balance of underlying tokens is insufficient.