YtPosition Instructions
TheYtPosition class manages a user’s yield position for a specific vault. It provides instructions for depositing and withdrawing YT, staging yield, and collecting earned interest and emissions.
Loading a YtPosition
Before loading a
YtPosition, the position must be initialized via vault.ixInitializeYieldPosition().Yield Collection Workflow
Collecting yield from a YT position is a three-step process:- Deposit YT — Transfer YT tokens into the position to start accruing
- Stage Yield — Compute earned interest and emissions from the exchange rate delta
- Collect — Withdraw staged interest (as SY) or emissions (as reward tokens)