Skip to main content

Documentation Index

Fetch the complete documentation index at: https://v2-docs.exponent.finance/llms.txt

Use this file to discover all available pages before exploring further.

createGetIndexInstruction

Retrieves the current exchange rate index from SyMeta for yield-stripping price calculations. This index represents the conversion rate between the base asset and its synthetic (SY) representation, and is used internally for vault valuations when positions involve yield-stripped assets.

Usage

import { createGetIndexInstruction } from "@exponent-labs/exponent-sdk/client/vaults";
import { PublicKey } from "@solana/web3.js";

const ix = createGetIndexInstruction({
  meta: syMetaAddress,
  mintSy: syMintAddress,
  tokenSyEscrow: syEscrowTokenAccount,
});

Accounts

NameSignerWritableDescription
metaNoYesSyMeta account to read and update the exchange rate index
mintSyNoNoSY token mint
tokenSyEscrowNoNoSY token escrow account holding the underlying balance

Args

This instruction takes no arguments.

Returns

TransactionInstruction — a transaction instruction ready to be added to a transaction.