NUNDINA
Architecture

Eight Programs, One Math Crate

Each primitive is its own Anchor program. They share fixed-point arithmetic through credit-math and move value only through the payment-rails cash layer.

Program map

The eight programs

payment-rails

payment rails

USDC cash layer: escrow, bonds, DvP settlement, refunds, ROFR, advances. Docs →

credit-gate

credit gate

Compliance at account activation: SAS reads, holder cap, lot ledger, seasoning, settle_check. Docs →

auction-engine

auction engine

Sealed-bid sessions: commit, reveal, uniform-price clear, pro-rata, print. Docs →

mark-engine

mark engine

NAV publication, mark staleness states, auction prints. Docs →

queue-claim

queue claim

Tokenized redemption-queue claims: request, attest, sell, pledge. Docs →

liquidity-facility

liquidity facility

Advances against claims and NPCS: health, stale-mark guard, liquidation ladder. Docs →

tranche-engine

tranche engine

Senior/junior pools, three books, coupon waterfall. Docs →

npcs-treasury

npcs treasury

NPCS mint-on-deposit and redeem-at-NAV against the USDC sleeve. Docs →
Layers

How it fits together

  • Asset & compliance. NPCS is a default-frozen Token-2022 mint. Token ACL routes thaw decisions to credit-gate, which reads SAS attestations and enforces the holder cap, lot seasoning and the block-list.
  • Pricing. mark-engine publishes NAV; auction-engine runs sealed-bid sessions against the mark taken at session open and publishes the clearing print back.
  • Queue & liquidity. queue-claim tokenizes redemption requests; liquidity-facility advances against them.
  • Risk transfer. tranche-engine splits a pool into senior and junior books; npcs-treasury mints and redeems NPCS against the USDC sleeve.
  • Cash. payment-rails holds every USDC and asset escrow, settles DvP, and admits engines through an EngineGrant.
Trust flow

Who can touch the money

The operator that drives a live fill reports reveals and chooses the matching, but cannot redirect value. The seller is paid only into its own account, the buyer receives only into its own, and fees and reserve go only to accounts recorded at session open. For every fill to_seller + fee + to_reserve == gross, computed in u128 and checked against real balances.

On devnet, the upgrade authority of payment-rails and credit-gate, and the NPCS mint authorities, sit with a Squads v4 2-of-2 multisig behind a 48-hour timelock; the engine programs are still upgraded by a single devnet deployer key. The live authority map is on the app's admin page. NUNDINA never holds the asset's freeze or permanent-delegate authority for issuer purposes, NAV publication, or custody of client assets.

Details: Program Map & Accounts, Deployment, Governance & Ops.