Accounts and PDAs

Every account the programs store, with fields and PDA seeds.

Updated Sep 25, 2026

Every account is a program-derived address. The seeds listed with each account are the ones the SDK's SEEDS constants and derive…Address helpers use; nested structs expand in place.

Amounts are raw atoms, prices are NAD-scaled quote per base, and bps fields are basis points. See Market anatomy for what the reserve fields mean.

BorrowPosition

A public credit position: collateral on both sides, fixed debt shares per side, stored liquidation factors, referral bindings and fields left from the retired liquidation auction.

PDA seeds
"borrow_position_v2", market, position id
SDK helper
deriveBorrowPositionAddress
Discriminator
f38c148b20f37237
FieldTypeNotes
ownerpubkey
marketpubkey
position_idpubkey
base_collateralu64
quote_collateralu64
global_health_base_contribution_for_quote_debtu64
global_health_quote_contribution_for_base_debtu64
base_liquidation_cf_bpsu16
quote_liquidation_cf_bpsu16
base_referral_partnerpubkey
quote_referral_partnerpubkey
base_referral_interest_share_bpsu16
quote_referral_interest_share_bpsu16
fixed_base_sharesu128
fixed_quote_sharesu128
fixed_base_principalu64Original base borrowed by this position that has not been repaid or written off.
fixed_quote_principalu64Original quote borrowed by this position that has not been repaid or written off.
active_liquidation_sessionpubkey
auction_debt_assetu8
auction_start_timei64
auction_start_price_nadu64
auction_floor_price_nadu64
bumpu8

FutarchyAuthority

The protocol-level authority: revenue shares, recipients, referral share cap, auction configuration and the global reduce-only flag.

PDA seeds
"futarchy_authority"
SDK helper
deriveFutarchyAuthorityAddress
Discriminator
aff7a0b68c80d3e2
FieldTypeNotes
versionu8
authoritypubkey
recipientsRevenueRecipients
revenue_shareRevenueShare
max_referral_interest_share_bpsu16
revenue_distributionRevenueDistribution
protocol_auction_splitProtocolAuctionSplit
fee_auctionProtocolAuctionConfig
buyback_auctionProtocolAuctionConfig
global_reduce_onlybool
bumpu8
RevenueRecipients
FieldTypeNotes
futarchy_treasurypubkey
buybacks_vaultpubkey
team_treasurypubkey
RevenueShare
FieldTypeNotes
swap_bpsu16
interest_bpsu16Global markup added to base borrowing interest. Each market closes elapsed interest at its previous value before binding a changed markup.
RevenueDistribution
FieldTypeNotes
futarchy_treasury_bpsu16
buybacks_vault_bpsu16
team_treasury_bpsu16
ProtocolAuctionSplit
FieldTypeNotes
fee_auction_bpsu16
buyback_auction_bpsu16
ProtocolAuctionConfig
FieldTypeNotes
accepted_mintpubkey
recipientsProtocolAuctionRecipients
paramsProtocolAuctionParams
ProtocolAuctionRecipients
FieldTypeNotes
treasurypubkey
staking_vaultpubkey
treasury_bpsu16
staking_vault_bpsu16
ProtocolAuctionParams
FieldTypeNotes
start_multiplier_bpsu16
floor_multiplier_bpsu16
duration_slotsu64
max_reference_age_slotsu64

HlpCohort

A retired hLP receipt cohort whose remaining tokens retain funded yield rights but no new principal backing.

PDA seeds
"hlp_cohort", market, retired hLP mint
Discriminator
e059c75a7e652bd7
FieldTypeNotes
marketpubkey
mintpubkey
target_assetu8
retiredbool
final_vaultHlpVault
bumpu8
HlpVault
FieldTypeNotes
flash_collateral_debitu64Collateral committed to one atomic flash recovery. Receipt supply is fixed until settlement; retail operations on other positions may run.
srlp_vaultpubkey
srlp_sharesu64
base_hlp_live_reserveu64hLP-owned live reserve depth that is not backed by reserve cash or normal cash-backed debt. This is the explicit synthetic live component in `r_virtual = r_cash + r_cash_backed_debt + r_hlp_live`.
quote_hlp_live_reserveu64
debt_sharesu128Funding debt used by the hLP vault. It accrues interest and counts toward utilization, but is not same-side cash-backed reserve debt.
debt_principalu64Raw borrowed token atoms; products and indexed shares stay `u128`.
hlp_supplyu64
residual_exposurei128
base_swap_fee_growth_index_q64u128
base_interest_growth_index_q64u128
quote_swap_fee_growth_index_q64u128
quote_interest_growth_index_q64u128
base_swap_fee_checkpoint_q64u128
base_interest_checkpoint_q64u128
quote_swap_fee_checkpoint_q64u128
quote_interest_checkpoint_q64u128
base_swap_fee_remainder_q64u64Aggregate sub-atom srLP entitlement carried across hLP checkpoints. These are distinct from each holder YieldAccount remainder: this layer converts vault-owned srLP growth into hLP growth without double-flooring.
base_interest_remainder_q64u64
quote_swap_fee_remainder_q64u64
quote_interest_remainder_q64u64
base_swap_fee_growth_remainder_scaledu64Sub-index distribution carry for the second, srLP-to-hLP allocation layer. Whole-token backing represented here has already left the corresponding `unallocated_*` bucket.
base_interest_growth_remainder_scaledu64
quote_swap_fee_growth_remainder_scaledu64
quote_interest_growth_remainder_scaledu64
unallocated_base_swap_fee_amountu64
unallocated_base_interest_amountu64
unallocated_quote_swap_fee_amountu64
unallocated_quote_interest_amountu64
last_nav_nadu128
cached_settlement_price_nadu128Base quoted in quote NAD units for either target asset; zero means unset.
funding_apr_ema_nadu128Smoothed APR of the opposite asset borrowed by this target-asset hLP. The fixed twelve-hour half-life gives Stop Rate orders stable semantics.
funding_apr_ema_last_slotu64

HlpFlashSession

A transaction-scoped hLP flash-recovery obligation, including released target collateral and fixed borrowed-token payment.

Discriminator
d4d8a18af174a67e
FieldTypeNotes
marketpubkey
buyerpubkey
quoteHlpFlashQuote
max_socialized_lossu64
payment_balance_beforeu64
hlp_supplyu64
begin_indexu16
settle_indexu16
slotu64
bumpu8
HlpFlashQuote
FieldTypeNotes
target_assetu8
collateral_debitu64
collateral_creditu64
borrowed_claimu64Borrowed-token srLP claim frozen when the quote is created. A full terminal session uses this value even if an interleaved Dusk swap moves the live pro-rata srLP reserve ratio before settlement.
paymentu64Spendable atoms required in the session's payment vault; includes the transfer fee from that vault to the market reserve.
reserve_creditu64
discount_bpsu16
fullbool

IncomeEpoch

An immutable closing snapshot for one unpaid-income book, used to preserve holder claims across accounting epochs.

PDA seeds
"income_epoch", market, book index, epoch
SDK helper
deriveIncomeEpochAddress
Discriminator
b4f8545763103ef6
FieldTypeNotes
marketpubkey
book_indexu8
bookIncomeReceivableBook
bumpu8
IncomeReceivableBook
FieldTypeNotes
epochu64
unpaidu64
unitsu64
paid_per_unit_q64u128
paid_remainderu64
growth[ReceivableGrowth; 4]Ordinary senior, junior, base hLP, quote hLP.
ReceivableGrowth
FieldTypeNotes
units_q64u128
weighted_paid_q128[u64; 4]

JuniorCohort

One jrLP mint generation, including its retired state and frozen income ledgers after rotation.

PDA seeds
"junior_cohort", market, jrLP mint
SDK helper
deriveJuniorCohortAddress
Discriminator
42ff0e5b9eb31709
FieldTypeNotes
income_end[IncomeExposureEnd; 4]
marketpubkey
mintpubkey
generationu64
retiredbool
final_income[TrancheIncome; 2]
bumpu8
IncomeExposureEnd
FieldTypeNotes
endedbool
epochu64
growthReceivableGrowth
ReceivableGrowth
FieldTypeNotes
units_q64u128
weighted_paid_q128[u64; 4]
TrancheIncome
FieldTypeNotes
initializedbool
income_share_bpsu16
reserve_sharesu64
receipt_supplyu64
swap_growth_q64u128
interest_growth_q64u128
swap_remainderu64
interest_remainderu64
seed_swap_amountu64
seed_interest_amountu64
seed_swap_checkpointu128
seed_interest_checkpointu128
seed_swap_remainderu64
seed_interest_remainderu64
carryTrancheRevenueCarry
TrancheRevenueCarry
FieldTypeNotes
interest_remainder_bpsu16
swap_remainder_bpsu16

JuniorExitAccount

One holder's burned jrLP exit claim, notice time and exercise window for a specific junior cohort.

PDA seeds
"junior_exit", market, owner, jrLP mint
SDK helper
deriveJuniorExitAddress
Discriminator
ba9ed0fa07db0d1a
FieldTypeNotes
marketpubkey
ownerpubkey
mintpubkey
ticketJuniorExitTicket
bumpu8
JuniorExitTicket
FieldTypeNotes
generationu64
receiptsu64
ready_atu64
expires_atu64Exclusive end before adding verified blocked time after ready_at.

LeverageDelegation

The delegate program allowed to act on a leverage position and the actions it may take.

PDA seeds
"leverage_delegation_v2", position
SDK helper
deriveLeverageDelegationAddress
Discriminator
313c1d17f3db10d6
FieldTypeNotes
ownerpubkey
marketpubkey
positionpubkey
debt_assetu8
delegated_programpubkey
approved_actionsu32
open_curve_revisionu64
bumpu8

LeveragePosition

An isolated leverage position: debt asset, collateral, margin, notional, debt shares, multiplier and timestamps.

PDA seeds
"leverage_position_v2", market, position id
SDK helper
deriveLeveragePositionAddress
Discriminator
584e7c44e48122fb
FieldTypeNotes
ownerpubkey
marketpubkey
namespace_authoritypubkeyFunding signer that established this position. Ordinary opens use the owner; sponsored entry orders use their owner-created order PDA.
position_idpubkey
referral_partnerpubkey
referral_interest_share_bpsu16
debt_assetu8
collateral_amountu64
margin_termsLeverageMarginTerms
margin_amountu64Entry equity valued in debt-token atoms.
open_notionalu64
debt_principalu128
debt_sharesu128
multiplier_bpsu64
opened_ati64
opened_slotu64
open_curve_revisionu64Market curve revision committed by this opening. A recreated PDA gets a new revision even if it reopens in the same slot.
active_liquidation_sessionpubkey
close_approvalCloseApprovalQuote
bumpu8
LeverageMarginTerms
FieldTypeNotes
reference_collateralu64
maintenance_boundaries_bps[u16; 2]
maintenance_rates_bps[u16; 3]
entry_buffer_bpsu16
admission_equity_collateral_nadu128Collateral atoms times NAD, not a fixed debt-token or dollar amount. Retained on equity extraction; released proportionally on size reduction.
CloseApprovalQuote
FieldTypeNotes
slotu64
close_bpsu16
collateral_creditu64
selected_outputu64
full_outputu64

LiquidationSession

A transaction-scoped borrow or leverage flash-liquidation obligation, including released collateral and the fixed repayment due.

Discriminator
c6134c3a66a686a4
FieldTypeNotes
marketpubkey
positionpubkey
ownerpubkey
buyerpubkey
collateral_mintpubkey
debt_mintpubkey
collateral_vaultpubkey
buyer_collateral_accountpubkey
repayment_vaultpubkey
buyer_refund_accountpubkey
owner_debt_accountpubkey
original_collateralu64
original_debt_sharesu128
original_principalu128
borrow_indexu128
payment_balance_beforeu64
min_buyer_creditu64Minimum final debt-token credit when the paired Dusk AMM funds settle. External settlement routes bind their own output and leave this zero.
quoteFlashLiquidationQuote
debt_assetu8
leveragebool
begin_indexu16
settle_indexu16
slotu64
bumpu8
FlashLiquidationQuote
FieldTypeNotes
fullbool
collateral_debitu64
collateral_creditu64
paymentu64Bound net spendable payment before distribution, including repayment, liquidation fee and any full-purchase proceeds belonging to the owner.
repaymentu64
owner_surplusu64
feeLiquidationFeeAllocation
debt_shares_to_burnu128
health_beforeLiquidationHealth
health_afterLiquidationHealth
ratesLiquidationRates
LiquidationFeeAllocation
FieldTypeNotes
totalu64
protocolu64
junioru64
LiquidationHealth
FieldTypeNotes
collateral_valueu64
debtu64
maintenance_bpsu16
LiquidationRates
FieldTypeNotes
buyer_discount_bpsu16
emergency_reward_bpsu16

Market

One market: configuration, curve state, both sides' reserves and fee liabilities, debt indexes, the two hLP vaults, risk observations, oracle policy, tranche capital and policy, the active jrLP mint, the income books, operator/manager authority and parameter revisions and the reduce-only flag.

PDA seeds
"market_v2", base mint, quote mint, params hash
SDK helper
deriveMarketAddress
Discriminator
dbbed53700e3c69a
FieldTypeNotes
oracleOracleState
versionu8
srlp_mintpubkey
base_sideMarketSide
quote_sideMarketSide
configMarketConfig
ammAmmState
debtDebt
tranchesTrancheCapitalOne shared junior capital budget across both reserve/debt books.
incomeMarketIncomeBooks
junior_exit_configJuniorExitConfig
tranche_policyTranchePolicy
junior_mintpubkey
base_hlp_vaultHlpVault
quote_hlp_vaultHlpVault
riskRisk
params_hash[u8; 32]
initial_liquidity_authoritypubkeyOne-shot signer allowed to provide the first fully-backed Base/Quote seed. It is cleared permanently once srLP supply becomes nonzero.
operatorOperatorStateSole per-market authority; token ownership carries no configuration rights.
protocol_interest_markup_bpsu16Internal mirror of the global FutarchyAuthority markup, never an operator parameter.
parameter_revisions[u64; 7]Independent monotone revisions for fee, concentration, IRM, EMA, daily-borrow-limit, center-controller, and tranche parameter families.
last_marginal_observation_nadu64Latest trader-visible marginal price committed by a curve mutation.
curve_revisionu64Monotone revision for executable-curve mutations.
risk_revisionu64Curve revision represented by the materialized lending-risk snapshot.
last_update_slotu64
reduce_onlybool
bumpu8
OracleState
FieldTypeNotes
policyOraclePolicy
last_observationOracleObservation
revisionu64
recognized_tail_liquidityu128Recognized native-tail depth cannot grow merely because an OP trade moves to a different native invariant. Real ordinary LP capital scales the ceiling through its share supply; losses reduce it immediately.
recognized_ordinary_supplyu64
runtimeRuntimePricing
OraclePolicy
FieldTypeNotes
formatu8
providerpubkey
base_accountpubkey
quote_accountpubkey
base_feed_id[u8; 32]
quote_feed_id[u8; 32]
lambda_bpsu16
adjustment_cap_nadu64
max_age_secondsu32
max_age_slotsu64
max_confidence_bpsu16
max_publish_skew_secondsu32
OracleObservation
FieldTypeNotes
price_nadu64
confidence_nadu64
publish_timei64
posted_slotu64
sequenceu64
hash[u8; 32]
source_times[i64; 2]
source_slots[u64; 2]
source_sequences[u64; 2]Independent counters retain replay protection when only one leg updates.
source_hashes[[u8; 32]; 2]Each normalized report is immutable at an already observed counter.
RuntimePricing
FieldTypeNotes
MarketSide
FieldTypeNotes
asset_mintpubkey
asset_decimalsu8
hlp_mintpubkey
reserve_vaultpubkey
collateral_vaultpubkey
interest_vaultpubkey
reservesReserves
sharesReserveShares
feesFees
daily_borrow_bucketDailyBorrowBucket
Reserves
FieldTypeNotes
flash_receivableu64Same-transaction collateral receivable. Included in backing, excluded from cash available to swaps, loans and withdrawals.
live_reserveu128Wider than SPL custody: includes cash, indexed public debt and synthetic hLP backing. Unpaid interest never becomes executable curve inventory.
cash_reserveu64
base_hlp_backing_inventoryu64Physical reserve-vault atoms removed from executable AMM inventory by base-hLP deleveraging. They are conservation-only bookkeeping, excluded from hLP NAV and exit output, and return to executable cash pro rata as base hLP exits.
quote_hlp_backing_inventoryu64Quote-hLP counterpart of `base_hlp_backing_inventory`; never a second hLP NAV or withdrawal claim.
protected_recenter_reserveu64Physical reserve-vault atoms retained from toxicity surcharge for a future protected recenter. They are custody-backed but excluded from executable cash/live reserves, srLP NAV, and every withdrawal claim.
ReserveShares
FieldTypeNotes
srlp_supplyu64
Fees
FieldTypeNotes
juniorTrancheIncome
public_interest_advancePublicInterestAdvance
swap_fee_growth_index_q64u128
interest_growth_index_q64u128
swap_fee_growth_remainder_scaledu64Scaled fee entitlement not yet representable by the integer growth index. The corresponding whole-token backing already sits in `swap_fee_liability`; it must never be redistributed as unallocated revenue.
interest_growth_remainder_scaledu64Interest counterpart of `swap_fee_growth_remainder_scaled`.
hlp_funding_interest_growth_remainder_scaledu64Source-scoped Q64 carry for interest paid by hLP funding debt. Funding uses a non-hLP denominator, while public interest uses total srLP supply; sharing one carry across those denominators would eventually leak rounding entitlement between the two populations.
swap_fee_custody_balanceu64Claimable swap fees physically held in the reserve vault but excluded from executable cash and live reserves.
interest_vault_balanceu64
swap_fee_liabilityu64
interest_liabilityu64
unallocated_swap_fee_liabilityu64
unallocated_interest_liabilityu64
swap_protocol_fee_liabilityu64
swap_buyback_fee_liabilityu64
interest_protocol_fee_liabilityu64
interest_buyback_fee_liabilityu64
referral_interest_liabilityu64
revenue_interest_liabilityu64Shared custody for operator claims and protocol fractional carry.
fee_auction_reference_marketpubkeyGovernance-approved reference market for fee-lane auctions. A default key permits only the sold market itself when it directly pairs the sold and accepted mints.
buyback_auction_reference_marketpubkeyGovernance-approved reference market for buyback-lane auctions. A default key has the same direct-market-only meaning as above.
fee_swap_auction_epochProtocolAuctionEpoch
fee_interest_auction_epochProtocolAuctionEpoch
buyback_swap_auction_epochProtocolAuctionEpoch
buyback_interest_auction_epochProtocolAuctionEpoch
DailyBorrowBucket
FieldTypeNotes
borrowed_bucketu64Gross principal lent out through the public borrow path. Internal hLP funding and isolated leverage do not consume this capacity. This is a 24-hour leaky/token bucket, not an exact trailing-window sum: it permits a full burst after idle and then refills at the configured daily rate.
last_decay_slotu64
decay_remainder_msu64Numerator remainder from `limit * elapsed_ms / MS_PER_DAY`. For a fixed absolute limit, carrying it makes refill independent of how often the bucket is checkpointed. The bps-derived absolute limit can still move when conservative market depth changes.
MarketConfig
FieldTypeNotes
swap_fee_bpsu16
divergence_fee_share_cap_bpsu16
volatility_fee_share_cap_bpsu16
target_hlp_leverage_bpsu16
settlement_divergence_bpsu16
ema_half_life_msu64
directional_ema_half_life_msu64
curve_depth_ema_half_life_msu64
max_daily_borrow_bpsu16
global_health_contribution_cap_bpsu16
borrow_market_health_floor_bpsu16
ammAmmConfig
irmRiskRateConfig
start_timei64
AmmConfig
FieldTypeNotes
peak_amplification_nadu64
core_half_width_bpsu16
fade_width_bpsu16
center_ema_half_life_msu64
volatility_half_life_msu64
adjustment_step_nadu64
volatility_shock_cap_nadu64
volatility_cap_nadu64
divergence_fee_coefficient_nadu64
volatility_fee_coefficient_nadu64
swap_fee_collect_modeu8Asset in which swap, toxicity, volatility, and retained-recenter fees are denominated. Lending and hLP funding interest remain in the borrowed asset and are not affected by this setting.
compounding_fee_bpsu16Share of the LP-owned swap fee which becomes ordinary reserve principal instead of a claimable fee liability. Zero disables native compounding; `BPS_DENOMINATOR` compounds the complete LP share.
launch_fee_start_bpsu16Optional launch-only base fee. The premium above `swap_fee_bps` decays from `start_time` and is zero after the configured duration.
launch_fee_duration_secondsu64
launch_fee_decay_modeu8
launch_market_price_step_bpsu16When all three values are zero, the launch fee follows the time schedule above. A fully nonzero tuple selects a price-milestone scheduler whose reference price is bound by the first liquidity seed.
launch_market_number_of_periodsu16
launch_market_reduction_factor_bpsu16
launch_rate_limit_assetu8Optional launch buy-size limiter. The configured asset is the asset being bought, not the input asset. Each full/partial reference amount after the first adds `launch_rate_limit_increment_bps`, capped by `launch_rate_limit_max_fee_bps`.
launch_rate_limit_reference_nadu64
launch_rate_limit_increment_bpsu16
launch_rate_limit_max_fee_bpsu16
launch_rate_limit_duration_secondsu64
reserved[u8; 0]
RiskRateConfig
FieldTypeNotes
lower_signal_nadu64
upper_signal_nadu64
lower_utilization_bpsu16
upper_utilization_bpsu16
half_life_msu64
initial_apr_nadu64
AmmState
FieldTypeNotes
initializedbool
concentration_rampConcentrationRamp
concentrated_curve_cacheConcentratedCurveCacheConcentrated CPMM-tail/band geometry. CPMM is represented by zero concentrated liquidity in this same cache.
center_price_nadu64
price_ema_nadu64
last_trade_price_nadu64
last_observation_slotu64
last_adjustment_slotu64
launch_reference_price_nadu64Immutable launch price reference bound by the first fully-backed liquidity seed. Zero is allowed only before that seed.
launch_fee_progress_offsetu16Fee-schedule progress already completed by a bootstrap adapter before the market graduates into GAMM.
volatility_accumulator_nadu64
curve_depth_per_share_nadu128
protected_floor_per_share_nadu128srLP principal floor protected from funded recenter/ramp impairment.
retention_required_nadu128Fresh protected-profit target that arms retained surcharge routing. This is a principal-budget target, never a cap on trader fees.
retention_stop_nadu128Hysteresis threshold below which retention remains armed.
retention_hard_cap_nadu128Maximum protected principal one controller target may request/spend. It does not clip divergence or volatility surcharge amounts.
retain_dynamic_surchargeboolWhen true, dynamic surcharge is locked in the non-quoteable protected recenter bucket; when false, the identical trader charge is routed to claimable srLP fee accounting.
retention_target_saturatedboolThe requested protection target exceeded its principal-budget cap.
retention_target_staleboolThe protected bucket changed after the last exact forward-target solve. While stale, retention stays on until a decision point refreshes the target or executes a funded recenter.
deferred_controller_targetDeferredControllerTargetExact unfunded controller target retried by later real operations.
frozen_hlp_masku8A distressed hLP cannot be reconstructed as positive one-sided equity. Each bit freezes only that vault's share/debt hedge during swaps.
frozen_base_vault_base_offset_nadi128Fixed virtual-coordinate adjustment captured when the vault freezes. It preserves the pre-freeze executable price without treating the vault's negative equity as spendable token inventory.
frozen_base_vault_quote_offset_nadi128
frozen_quote_vault_base_offset_nadi128
frozen_quote_vault_quote_offset_nadi128
_reserved[u8; 0]
ConcentrationRamp
FieldTypeNotes
activebool
startConcentratedCurveParameters
targetConcentratedCurveParameters
start_slotu64
end_slotu64
last_attempt_slotu64Successful or rejected steps are attempted at most once per slot.
ConcentratedCurveCache
FieldTypeNotes
math_revisionu8
peak_amplification_nadu64
core_half_width_bpsu16
fade_width_bpsu16
tail_liquidityu128
concentrated_liquidityu128
core_lower_sqrt_price_nadu128
core_upper_sqrt_price_nadu128
outer_lower_sqrt_price_nadu128
outer_upper_sqrt_price_nadu128
DeferredControllerTarget
FieldTypeNotes
kindu80 = none, 2 = center move.
center_price_nadu64
required_nadu128
evaluated_base_reserve_nadu128
evaluated_quote_reserve_nadu128
created_slotu64
saturatedbool
Debt
FieldTypeNotes
fixed_base_sharesu128
fixed_quote_sharesu128
base_borrow_index_nadu128
quote_borrow_index_nadu128
base_borrow_index_remainderu128Fractional index growth carried across checkpoints. Denominator is `NAD * MS_PER_YEAR`, so frequent checkpoints cannot discard interest.
quote_borrow_index_remainderu128
base_borrow_apr_nadu128
quote_borrow_apr_nadu128
base_borrow_apr_fraction_e18u64Fractional NAD APR carried by the exponential controller (scale 1e9).
quote_borrow_apr_fraction_e18u64
global_health_base_contribution_for_quote_debtu64
global_health_quote_contribution_for_base_debtu64
base_last_accrual_slotu64
quote_last_accrual_slotu64
fixed_base_principalu64Aggregate outstanding *principal* (borrowed token amount, excluding accrued interest) backing fixed margin debt on each side. Accrued interest is `fixed_*_debt - fixed_*_principal`; tracked so interest can be routed to the interest vault (non-compounding) instead of compounding into reserves. Principal is a raw token-atom balance and is therefore bounded by the corresponding `u64` reserve custody domain.
fixed_quote_principalu64
isolated_base_sharesu128Aggregate isolated leverage debt. This debt contributes to utilization and interest, but is intentionally not utilized as normal margin debt. Shares remain `u128`; raw principal remains in the token account's `u64` amount domain.
isolated_quote_sharesu128
isolated_base_principalu64
isolated_quote_principalu64
leverage_base_collateralu64Gross collateral atoms in debt-bearing leverage positions. Counts all owners and namespaces; custody donations cannot create exposure credit.
leverage_quote_collateralu64
TrancheCapital
FieldTypeNotes
junior_reserve_sharesu64
junior_receipt_supplyu64
permanent_receiptsu64Funded, nonredeemable protocol receipts; included in junior supply.
queued_receiptsu64Escrow remains junior until a successful conversion or cancellation.
generationu64
MarketIncomeBooks
FieldTypeNotes
books[IncomeReceivableBook; 4]base public, quote public, base hLP funding, quote hLP funding.
revenue[InterestRevenueBook; 4]
pending[u64; 4]Gross settlement budget awaiting measured net custody credit.
seed[IncomeReceivableClaim; 4]
hlp[[IncomeReceivableClaim; 2]; 2][hLP target][income asset], owned by the vault rather than its holders.
junior_end[IncomeExposureEnd; 4]
split_carry_bps[u16; 4]
IncomeReceivableBook
FieldTypeNotes
epochu64
unpaidu64
unitsu64
paid_per_unit_q64u128
paid_remainderu64
growth[ReceivableGrowth; 4]Ordinary senior, junior, base hLP, quote hLP.
InterestRevenueBook
FieldTypeNotes
gross_unpaidu64
protocol_unpaidu64
operator_unpaidu64
pending_grossu64
pending_protocol_grossu64
operator_claimableu64
protocol_fraction_q64u64
operator_fraction_q64u64
protocol_cash_fraction_q64u64
IncomeReceivableClaim
FieldTypeNotes
epochu64
units_q64u128
paid_checkpoint_q64u128
growth_checkpointReceivableGrowth
paid_fraction_q128u128
claimableu64
IncomeExposureEnd
FieldTypeNotes
endedbool
epochu64
growthReceivableGrowth
JuniorExitConfig
FieldTypeNotes
minimum_notice_slotsu64
maximum_notice_slotsu64
exercise_window_slotsu64
TranchePolicy
FieldTypeNotes
junior_income_share_bpsu16
HlpVault
FieldTypeNotes
flash_collateral_debitu64Collateral committed to one atomic flash recovery. Receipt supply is fixed until settlement; retail operations on other positions may run.
srlp_vaultpubkey
srlp_sharesu64
base_hlp_live_reserveu64hLP-owned live reserve depth that is not backed by reserve cash or normal cash-backed debt. This is the explicit synthetic live component in `r_virtual = r_cash + r_cash_backed_debt + r_hlp_live`.
quote_hlp_live_reserveu64
debt_sharesu128Funding debt used by the hLP vault. It accrues interest and counts toward utilization, but is not same-side cash-backed reserve debt.
debt_principalu64Raw borrowed token atoms; products and indexed shares stay `u128`.
hlp_supplyu64
residual_exposurei128
base_swap_fee_growth_index_q64u128
base_interest_growth_index_q64u128
quote_swap_fee_growth_index_q64u128
quote_interest_growth_index_q64u128
base_swap_fee_checkpoint_q64u128
base_interest_checkpoint_q64u128
quote_swap_fee_checkpoint_q64u128
quote_interest_checkpoint_q64u128
base_swap_fee_remainder_q64u64Aggregate sub-atom srLP entitlement carried across hLP checkpoints. These are distinct from each holder YieldAccount remainder: this layer converts vault-owned srLP growth into hLP growth without double-flooring.
base_interest_remainder_q64u64
quote_swap_fee_remainder_q64u64
quote_interest_remainder_q64u64
base_swap_fee_growth_remainder_scaledu64Sub-index distribution carry for the second, srLP-to-hLP allocation layer. Whole-token backing represented here has already left the corresponding `unallocated_*` bucket.
base_interest_growth_remainder_scaledu64
quote_swap_fee_growth_remainder_scaledu64
quote_interest_growth_remainder_scaledu64
unallocated_base_swap_fee_amountu64
unallocated_base_interest_amountu64
unallocated_quote_swap_fee_amountu64
unallocated_quote_interest_amountu64
last_nav_nadu128
cached_settlement_price_nadu128Base quoted in quote NAD units for either target asset; zero means unset.
funding_apr_ema_nadu128Smoothed APR of the opposite asset borrowed by this target-asset hLP. The fixed twelve-hour half-life gives Stop Rate orders stable semantics.
funding_apr_ema_last_slotu64
Risk
FieldTypeNotes
base_price_ema_nadu64
quote_price_ema_nadu64
directional_base_price_ema_nadu64
directional_quote_price_ema_nadu64
cached_spot_base_price_nadu64
cached_spot_quote_price_nadu64
observed_curve_depth_nadu128Last observed total active curve depth in market amount units (see Market).
curve_depth_ema_nadu128EMA of total active curve depth in market amount units (see Market).
last_snapshot_slotu64
OperatorState
FieldTypeNotes
authoritypubkey
managerpubkeyOptional parameter delegate; operator ownership and revenue stay with authority.
epochu64
revenue_epochu64
next_nonceu64Monotone across authority transfers; a closed proposal PDA cannot be reused.
pendingpubkey
pending_authorpubkeyPrevents a manager from replacing an operator-authored bundle.
revenue_recipientpubkey
interest_share_bpsu16

OperatorProposal

One committed atomic settings/authority bundle, its author, exact targets, revisions, digest, full notice, deadline and rent recipient.

PDA seeds
"operator_proposal", market, nonce (u64 little-endian)
SDK helper
deriveOperatorProposalAddress
Discriminator
37ae4e7021209fa9
FieldTypeNotes
marketpubkey
operatorpubkey
epochu64
nonceu64
policy_versionu64
updatesVec<MarketParameterUpdate>
next_operatorOption<pubkey>
next_managerOption<pubkey>Some(zero) clears the manager; None leaves it unchanged.
revenue_recipientOption<pubkey>
interest_share_bpsOption<u16>
metadataProposalMetadataV1
family_revisions[u64; 7]
announced_at_slotu64
execute_after_slotu64
deadline_slotu64
rent_refundpubkey
digest[u8; 32]
executedbool
bumpu8
MarketParameterUpdate
VariantFields
FeeFeeProfile
Concentrationpeak_amplification_nad: u64, core_half_width_bps: u16, fade_width_bps: u16, ramp_duration_slots: u64
IrmRiskRateUpdate
EmaHalfLivesprice_ms: u64, directional_price_ms: u64, curve_depth_ms: u64, center_price_ms: u64
DailyBorrowLimitmax_daily_borrow_bps: u16
CenterControlleradjustment_step_nad: u64
Tranchejunior_income_share_bps: u16
ProposalMetadataV1
FieldTypeNotes
versionu8
titlestring
description_uristring
description_sha256[u8; 32]
description_lenu32

OperatorRevenueAccount

A recipient’s collected operator interest from a revenue epoch, preserved across recipient and ownership handoffs.

Discriminator
8967e29b9962e341
FieldTypeNotes
marketpubkey
recipientpubkey
revenue_epochu64
claimable[u64; 4]
sealedbool
bumpu8

ReferralAccrual

A partner's claimable interest for one market and asset mint.

PDA seeds
"referral_accrual", partner, market, asset mint
SDK helper
deriveReferralAccrualAddress
Discriminator
23f61942aea03027
FieldTypeNotes
referral_partnerpubkey
marketpubkey
asset_mintpubkey
amountu64
bumpu8

ReferralPartner

A listed referrer: its authority, recipient, interest share and active flag.

PDA seeds
"referral_partner", authority
SDK helper
deriveReferralPartnerAddress
Discriminator
ea36a99d8ebbe1d6
FieldTypeNotes
authoritypubkey
recipientpubkey
interest_share_bpsu16
activebool
bumpu8

YieldAccount

Per owner, market, LP mint, asset and kind: checkpoints against the growth indexes and income books, accrued amounts, jrLP held in an exit request, the recipient and an optional harvest authority.

PDA seeds
"yield", market, owner, LP mint, asset mint, kind
SDK helper
deriveYieldAccountAddress
Discriminator
e9f17706020e6a9c
FieldTypeNotes
ownerpubkey
marketpubkey
lp_mintpubkeyLP mint whose balance earns this account's revenue stream. This keeps base-hLP, quote-hLP, and srLP entitlements in disjoint PDA namespaces.
asset_mintpubkey
token_kindu8
recipientpubkey
swap_fee_checkpoint_q64u128
interest_checkpoint_q64u128
accrued_swap_fee_amountu64
accrued_interest_amountu64
swap_fee_remainder_q64u64Sub-token fixed-point entitlement carried across checkpoints. Keeping this remainder prevents transfer/checkpoint frequency from destroying holder yield through repeated flooring.
interest_remainder_q64u64
bumpu8
harvest_authorityOption<pubkey>Optional caller allowed to harvest to the recipient without controlling the LP or changing either yield permission. Only the owner may set it.
income_initializedbool
income[IncomeReceivableClaim; 2]
escrow_balanceu64Owner's junior exit escrow receipts. Historical unpaid-income ownership is checkpointed here alongside the liquid balance.
IncomeReceivableClaim
FieldTypeNotes
epochu64
units_q64u128
paid_checkpoint_q64u128
growth_checkpointReceivableGrowth
paid_fraction_q128u128
claimableu64
ReceivableGrowth
FieldTypeNotes
units_q64u128
weighted_paid_q128[u64; 4]