Skip to main content

YtPosition Instructions

The YtPosition 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:
  1. Deposit YT — Transfer YT tokens into the position to start accruing
  2. Stage Yield — Compute earned interest and emissions from the exchange rate delta
  3. Collect — Withdraw staged interest (as SY) or emissions (as reward tokens)

Instructions

Deposit YT

Withdraw YT

Stage Yield

Collect Interest

Collect Emission