TheDocumentation 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.
Vault class exposes several getter properties for reading market state after loading. No additional RPC calls are required — these read from the locally loaded vault state.
Usage
Available Properties
| Property | Type | Description |
|---|---|---|
currentSyExchangeRate | number | Current SY to underlying exchange rate |
expirationTimestamp | number | UNIX timestamp (seconds) at which the vault expires |
expirationDate | Date | JavaScript Date at which the vault expires |
mintPt | PublicKey | PT token mint address |
mintYt | PublicKey | YT token mint address |
mintSy | PublicKey | SY token mint address |
syBalance | bigint | Total SY balance held in the vault’s escrow |
authority | PublicKey | Vault authority PDA |
escrowSy | PublicKey | SY escrow token account |
escrowYt | PublicKey | YT escrow token account |
addressLookupTable | PublicKey | Address lookup table for the vault |
Refreshing State
To fetch the latest onchain state, callreload: