ixCollectInterest method on the Vault class creates a transaction instruction that collects accrued interest (paid in SY) from a yield position.
Usage
Required Parameters
Optional Parameters
Returns
Returns aTransactionInstruction that transfers accrued SY interest to the owner.
You must stage yield before collecting. Staging computes the earned interest from the exchange rate delta.