Skip to main content
The YtPosition class represents a user’s yield position for a specific vault. It tracks deposited YT balance, accrued interest, and emission rewards.

Loading a Position

By address

By owner

Multiple positions for one owner

Reading Position State

Available Properties

Refreshing State

Serialization

Returns a YtPositionJson object with:
  • owner — Owner public key as string
  • ytBalance — YT balance as string
  • interest — Interest tracker with lastSeenIndex and staged
  • claimableInterest — Calculated claimable interest amount
  • emissions — Array of emission trackers
  • vault — Serialized vault state