Function: deposit(uint256 _amount)
This function deposits tokens from the vault controller into the validator pool.
Inputs
_amountControl: Fully controlled by the caller.
Constraints: N/A.
Impact: Amount of tokens to deposit.
Branches and code coverage
Intended branches
Receive the amount of tokens to deposit.
Call the
buyVoucherPOLfunction on the validator pool.Send any remaining tokens back to the vault controller.