Function: earn()
This allows the vault to earn yield on the deposited funds.
Branches and code coverage
Intended branches
Transfer the funds into the strategy.
Call the
deposit
function of the strategy.
Negative behavior
Should not be callable by anyone other than the admin. Currently not enforced, and this can lead to a constant leach of funds due to accrued fees. Currently not performed.