ixCollectInterest method on the YtPosition class creates a transaction instruction that collects staged interest (paid in SY) from the yield position.
Usage
Required Parameters
Optional Parameters
Returns
Returns aTransactionInstruction that transfers staged SY interest to the owner.
You must stage yield before collecting. Staging and collecting can be combined in the same transaction.