Skip to main content

Read Functions

This section covers the current-state read helpers available on TranchingMarket. These functions query loaded market state or derive values locally without submitting transactions. Historical series helpers are not covered here.

Available Functions

Market State

Read raw NAV, effective NAV, market size, utilization, status flags, and lifecycle state from the loaded market account.

Capacity and LP Prices

Query Senior and Junior LP prices, remaining LP capacity, remaining NAV capacity, and coverage-constrained Senior capacity.

APY and Protection

Calculate current Senior/Junior APY, APY after a proposed deposit, and Senior protection after deposit.

Addresses and Token Accounts

Derive market PDAs, read market token mints, and derive user LP associated token accounts.