# Accounts

Every account a desk creates, pays for or reads. For each one: its PDA seeds, size, owner, and the fields you read, with their units. The put accounts added on 4 November 2026 are listed at the end, in [Put accounts](#put-accounts). Desks cannot quote puts yet.

## Conventions

- **Offsets** are byte offsets into the raw account data. Bytes 0 to 8 are the Anchor discriminator: the first 8 bytes of `sha256("account:<Name>")`.
- **Integers** are little-endian. `u64` and `i64` take 8 bytes. `bool` is 1 byte (0 or 1). A `Pubkey` is 32 bytes.
- **Seeds** are listed in order. A string seed is its UTF-8 bytes. A Pubkey seed is its 32 bytes. "Quote key" means the 20 raw bytes of your `0x…` quote key address. A nonce or salt seed is a `u64` in 8 little-endian bytes.
- **USDC atoms**: 1 USDC = 1,000,000. **Collateral atoms**: 1 token = 10^decimals atoms (JitoSOL: 10^9).
- **Times** are unix seconds from the Solana clock (`i64`).

| Account | Discriminator (hex) | Size (bytes) | Owner |
| --- | --- | --- | --- |
| Maker | `1fffe83d261cbd93` | 117 | program |
| MakerOriginV1 | `3f4f3531be414e4d` | 179 | program |
| PremiumBudget | `681596bdc5d2df64` | 90 | program |
| Exposure | `f84bcc155cfbc593` | 89 | program |
| MintPolicyV1 | `e4f567e0036bef4a` | 342 | program |
| MintUsageV1 | `5cc6e5df9cc060ed` | 261 | program |
| MarketV3 | `f78670c82d5f1b88` | 376 | program |
| PositionV3 | `c2f7ab366adb6033` | 652 | program |
| FlashExercisePolicyV1 | `4b99abbfa05c8012` | 277 | program |
| FlashExerciseContextV1 | `c6187712e99982c0` | 464 | program. Exists only inside one flash exercise transaction. |
| USDC vault, position collateral vault | SPL token account | 165 for SPL Token | token program |
| MintPolicyV2 (puts) | `a15dfa85318ef176` | 377 | program |
| MintUsageV2 (puts) | `88008abeff1a7500` | 262 | program |
| MintPurchasePolicyV2 (puts) | `997fc53a1e4fae2a` | 262 | program |
| MintPurchaseUsageV2 (puts) | `b86eef93185e9bf2` | 222 | program |
| PaymentSpendLedgerV1 (puts) | `1777932a655e3778` | 155 | program |
| PutExposureV1 (puts) | `39008cd2ea62cf7e` | 89 | program |
| FlashPutPolicyV1 (puts) | `dbaa439982543a47` | 277 | program |
| Put asset vault, put strike escrow | SPL token account | 165 for SPL Token | token program |

## Maker

Your identity on chain. One per quote key. Created by `register_maker_v3`.

| | |
| --- | --- |
| Seeds | `"maker"`, quote key (20 bytes) |
| Size | 117 bytes |
| Rent paid by | your authority |
| SDK | `deriveMaker(makerEthAddress).maker`, [`decodeMaker`](https://docs.covr.markets/reference/sdk/setup.md#decodemaker) |

| Offset | Field | Type | Meaning |
| --- | --- | --- | --- |
| 8 | `authority` | Pubkey | Your Solana authority. Set at registration. No instruction can change it. |
| 40 | `eth_address` | 20 bytes | Your quote key address. Every quote must recover to it. |
| 60 | `bump` | u8 | PDA bump. |
| 61 | `operator` | Pubkey | Optional second key that may exercise. All zeros means none. |
| 93 | `min_nonce` | u64 | Your nonce floor. See [The nonce floor](#the-nonce-floor). |
| 101 | registration marker | 8 bytes | ASCII `CVRFNC01`. |
| 109 | registration slot | u64 | The slot `register_maker_v3` ran in. |

`decodeMaker` returns `authority`, `ethAddress`, `bump`, `operator` and `minNonce`, plus two fields that mirror bytes 101 to 117. For a Maker created by `register_maker_v3` those two are always `true` and the registration slot.

### The nonce floor

`min_nonce` is how you cancel quotes. Every instruction that checks a signature from your quote key also checks the signed nonce against it:

```rust
nonce >= maker.min_nonce && nonce != u64::MAX   // otherwise InvalidOrder (6003)
```

| Instruction | Nonce it checks |
| --- | --- |
| `fill_v3`, `fill_restricted_v3` | The quote nonce |
| `early_close_v3` | The early-close nonce |
| `buy_position_v3` | The buying desk's sale nonce |

Rules:

- **It only goes up.** `configure_maker` refuses a lower value with `InvalidTerms` (6001).
- **Raising it cancels at once.** Every signed quote, early-close quote and sale quote with a lower nonce stops working on chain. Positions already open are not touched.
- **Each quote nonce opens at most one position.** The position address is derived from your quote key and the nonce, across all markets. A second fill with the same nonce fails because the account already exists.
- **`u64::MAX` retires this quote key forever.** No nonce passes a floor of 18446744073709551615 (`u64::MAX`), the floor can never go down, and a quote key can never register again. Setting it is permanent.
- **It also gates rent cleanup.** A customer can close a settled position account only once your `min_nonce` is above that position's nonce. This does not move any of your funds.

> [!CAUTION]
> Setting `min_nonce` to `u64::MAX` retires this quote key forever: it can never register again. To cancel everything outstanding, raise `min_nonce` to the highest nonce you have signed plus 1. To stop all fills on a mint for a while, use [`pause_mint_policy_v1`](https://docs.covr.markets/reference/program/instructions.md#pause_mint_policy_v1) instead: it is reversible. If your quote key leaked, `u64::MAX` is the right move: see [If your quote key leaks](https://docs.covr.markets/resources/security.md#if-your-quote-key-leaks).

## MakerOriginV1

Your registration record. Created by `register_maker_v3` and never changed. Every fill and `bootstrap_mint_usage_v1` pass it as the `origin` account.

| | |
| --- | --- |
| Seeds | `"maker-origin-v1"`, Maker |
| Size | 179 bytes |
| SDK | `deriveMaker(makerEthAddress).origin`. No decoder. |

| Offset | Field | Type | Meaning |
| --- | --- | --- | --- |
| 8 | `version` | u8 | Always 1. |
| 9 | `bump` | u8 | PDA bump. |
| 10 | `maker` | Pubkey | Your Maker. |
| 42 | `authority` | Pubkey | Your authority at registration. |
| 74 | `deployment_id` | 32 bytes | Equals `DEPLOYMENT_ID`. |
| 106 | `payment` | Pubkey | USDC mint. |
| 138 | `payment_program` | Pubkey | SPL Token program. |
| 170 | `payment_decimals` | u8 | 6. |
| 171 | `birth_slot` | u64 | Registration slot. Equals the Maker's registration slot. |

## USDC vault

Your USDC. One per Maker. Created by `initialize_vault`. It is a standard SPL token account, so any token decoder reads its balance.

| | |
| --- | --- |
| Seeds | `"stable"`, Maker, USDC mint |
| Owner | SPL Token program. Its token authority is your Maker PDA, so only the program can move funds out. |
| SDK | `deriveVault(maker).vault` |
| In | `deposit` (from your authority's USDC account), `early_close_v3` (customer pays you) |
| Out | `fill_v3` (gross premium), `exercise_v3` (strike), `withdraw` (to your authority's USDC account), `buy_position_v3` (sale price), `fund_restricted_exercise_v3` (restricted strike, into escrow) |

The program never sets the strike aside. Your vault balance is the only thing that pays exercises. See [Money rules](https://docs.covr.markets/reference/program/instructions.md#money-rules).

The vault's seeds include the payment mint, so a Maker can have one vault per payment token. On a put market paid in USDC, this same USDC vault pays the put premium and receives the cash at put exercise or early close. See [Put money rules](https://docs.covr.markets/reference/program/instructions.md#put-money-rules).

## PremiumBudget

An optional lifetime cap on what fills can spend from your vault. One per Maker and payment token, shared by every collateral mint and market paid in that token. Created by `initialize_vault`, disabled. The USDC one counts call fills and put fills paid in USDC.

| | |
| --- | --- |
| Seeds | `"premium-budget"`, Maker, USDC mint |
| Size | 90 bytes |
| SDK | `deriveVault(maker).premiumBudget`. No decoder. |

| Offset | Field | Type | Meaning |
| --- | --- | --- | --- |
| 8 | `maker` | Pubkey | Your Maker. |
| 40 | `stable` | Pubkey | USDC mint. |
| 72 | `limit` | u64 | Cap on `spent`, in USDC atoms. Enforced only when `enabled`. |
| 80 | `spent` | u64 | Lifetime gross premium (fee included) of all your fills, plus the price of every position you bought, in USDC atoms. Never goes down. |
| 88 | `enabled` | bool | `false`: no cap at all. `true`: a fill fails if `spent + gross > limit`. |
| 89 | `bump` | u8 | PDA bump. |

> [!NOTE]
> A new vault has no premium cap. `enabled` is `false` until you call `set_premium_budget`.

## Exposure

A cap on how much collateral you hold open on one mint, across all markets. One per Maker and collateral mint. Created by `initialize_exposure_v3`.

| | |
| --- | --- |
| Seeds | `"exposure"`, Maker, collateral mint |
| Size | 89 bytes |
| SDK | `deriveExposure(maker, mint)`. No decoder. |

| Offset | Field | Type | Meaning |
| --- | --- | --- | --- |
| 8 | `maker` | Pubkey | Your Maker. |
| 40 | `collateral` | Pubkey | Collateral mint. |
| 72 | `limit` | u64 | Cap on `active`, in collateral atoms. |
| 80 | `active` | u64 | Collateral atoms in your open positions on this mint. Up at fill. Down at exercise, release or early close. |
| 88 | `bump` | u8 | PDA bump. |

A fill fails with `ExposureLimit` (6006) if `active + quantity > limit`. Change `limit` with `set_exposure_limit`. This account counts covered calls only. Puts use a separate [PutExposureV1](#put-accounts).

## MintPolicyV1

Your per-mint caps, and the exact market terms you accept on that mint. One per Maker and collateral mint. Created by `initialize_mint_policy_v1`.

| | |
| --- | --- |
| Seeds | `"mint-policy"`, Maker, collateral mint |
| Size | 342 bytes |
| SDK | `deriveMintPolicy(maker, mint).policy`, [`decodeMintPolicy`](https://docs.covr.markets/reference/sdk/setup.md#decodemintpolicy)`(policyAddress, raw, { authority, maker, collateral: { mint, program, decimals } })`. Build settings with [`mintPolicySettingsFor`](https://docs.covr.markets/reference/sdk/setup.md#mintpolicysettingsfor). |

| Offset | Field | Type | Meaning |
| --- | --- | --- | --- |
| 8 | `version` | u8 | Always 1. |
| 9 | `bump` | u8 | PDA bump. |
| 10 | `maker` | Pubkey | Your Maker. |
| 42 | `authority` | Pubkey | Your authority. |
| 74 | `collateral` | Pubkey | Collateral mint. |
| 106 | `collateral_program` | Pubkey | Token program of that mint. |
| 138 | `collateral_decimals` | u8 | Decimals of that mint. |
| 139 | `payment` | Pubkey | USDC mint. |
| 171 | `payment_program` | Pubkey | SPL Token program. |
| 203 | `payment_decimals` | u8 | 6. |
| 204 | `generation` | u64 | Starts at 1. Each update or pause adds 1. Both must name the current value. |
| 212 | `watcher` | Pubkey | Optional key that may pause this policy. All zeros means none. |
| 244 | `enabled` | bool | `false`: every new fill on this mint fails. |
| 245 | `terms_id` | 32 bytes | Must equal the market's `terms_id`. `ORDINARY_TERMS_ID` for ordinary markets. |
| 277 | `profile_hash` | 32 bytes | Must equal the market's `profile_hash` (a fingerprint of the collateral mint). |
| 309 | `max_order_atoms` | u64 | Largest single fill, in collateral atoms. |
| 317 | `max_reserved_atoms` | u64 | Cap on collateral atoms open on this mint. |
| 325 | `max_reserved_strike_usdc` | u64 | Cap on the total strike you owe on open positions on this mint, in USDC atoms. |
| 333 | `lifetime_premium_limit_enabled` | bool | Turns the next field on. |
| 334 | `lifetime_premium_limit_usdc` | u64 | Cap on lifetime gross premium on this mint, in USDC atoms. Must be 0 when disabled. |

`decodeMintPolicy` returns these fields with `generation` as a `bigint` and the settings under `settings`. It checks the PDA, bump, maker, authority and collateral identity, but not the account owner: read the account yourself and check `owner === PROGRAM_ID` first.

Every cap is checked at fill time, against the totals after the fill. A breach fails the fill with `TokenLifecycleAccounting` (8302). The policy is never read by exercise, release or early close, so pausing or tightening it never blocks an exit.

A policy holds one `terms_id`, so each mint is quoted either in ordinary markets or in restricted markets, never both. Restricted (tokenized-stock) markets stay covr-only for now, so a desk policy holds `ORDINARY_TERMS_ID`. Puts never read this account: they use a separate put policy, [MintPolicyV2](#put-accounts).

To stop every fill on a mint at once, pause the policy with [`pause_mint_policy_v1`](https://docs.covr.markets/reference/program/instructions.md#pause_mint_policy_v1) (SDK: `pauseMintPolicyV1`). Your authority or the `watcher` key can sign it, and your authority can undo it with `update_mint_policy_v1` (SDK: `updateMintPolicyV1`).

## MintUsageV1

The running totals your mint policy is checked against. One per Maker and collateral mint. Created next to the policy, and unusable until `bootstrap_mint_usage_v1` runs.

| | |
| --- | --- |
| Seeds | `"mint-usage"`, Maker, collateral mint |
| Size | 261 bytes |
| SDK | `deriveMintPolicy(maker, mint).usage`, [`decodeMintUsage`](https://docs.covr.markets/reference/sdk/setup.md#decodemintusage)`(usageAddress, raw, { maker, collateral: { mint, program, decimals } })` |

| Offset | Field | Type | Meaning |
| --- | --- | --- | --- |
| 8 | `version` | u8 | Always 1. |
| 9 | `bump` | u8 | PDA bump. |
| 10 | `maker` | Pubkey | Your Maker. |
| 42 | `collateral` | Pubkey | Collateral mint. |
| 74 | `collateral_program` | Pubkey | Token program of that mint. |
| 106 | `collateral_decimals` | u8 | Decimals of that mint. |
| 107 | `payment` | Pubkey | USDC mint. |
| 139 | `payment_program` | Pubkey | SPL Token program. |
| 171 | `payment_decimals` | u8 | 6. |
| 172 | `policy` | Pubkey | Your MintPolicyV1 for this mint. |
| 204 | `bootstrapped` | bool | `false` until `bootstrap_mint_usage_v1`. Fills on this mint fail while `false`. |
| 205 | `reserved_atoms` | u64 | Collateral atoms in open positions on this mint. |
| 213 | `reserved_strike_usdc` | u64 | Strike you owe if every open position on this mint is exercised, in USDC atoms. |
| 221 | `cumulative_premium_usdc` | u64 | Lifetime gross premium on this mint, in USDC atoms. Never goes down. |
| 229 | `open_claims` | u64 | Open positions on this mint. |
| 237 | `pending_claims` | u64 | Restricted positions funded but not yet delivered. |
| 245 | `total_fills` | u64 | Lifetime fills on this mint. |
| 253 | `total_settled` | u64 | Positions settled. `total_fills - total_settled = open_claims`. |

> [!TIP]
> `reserved_strike_usdc` is the USDC you owe on that mint if every open position is exercised. Your vault is shared by all mints. Add this field across your mints and compare it with your vault balance.

## MarketV3

One market's terms. Any wallet can create one. Every position on a market shares its expiry and exercise window.

| | |
| --- | --- |
| Seeds | `"market-v3"`, creator, salt (u64 LE) |
| Size | 376 bytes |
| Rent paid by | the creator |
| SDK | `deriveMarket(creator, salt)`, [`decodeMarketV3`](https://docs.covr.markets/reference/sdk/markets.md#decodemarketv3) |

| Offset | Field | Type | Meaning |
| --- | --- | --- | --- |
| 8 | `version` | u8 | Always 3. |
| 9 | `bump` | u8 | PDA bump. |
| 10 | `settlement_mode` | u8 | 0 = ordinary (atomic exercise). 1 = restricted (fund, then deliver). 2 = cash-secured put. |
| 11 | `collateral_decimals` | u8 | Decimals of the collateral mint. |
| 12 | `payment_decimals` | u8 | 6. |
| 13 | `creator` | Pubkey | The wallet that created the market. It alone can pause it. |
| 45 | `collateral` | Pubkey | Collateral mint. |
| 77 | `collateral_program` | Pubkey | Token program of the collateral. |
| 109 | `payment` | Pubkey | USDC mint. On a put market, that market's payment mint. |
| 141 | `payment_program` | Pubkey | SPL Token program. |
| 173 | `fee_owner` | Pubkey | Owner of the USDC account that receives the fee. Never zero. |
| 205 | `genesis_hash` | Pubkey | Mainnet genesis hash. |
| 237 | `deployment_id` | 32 bytes | Equals `DEPLOYMENT_ID`. |
| 269 | `terms_id` | 32 bytes | `ORDINARY_TERMS_ID` or `RESTRICTED_TERMS_ID`. On a put market, the put terms id `0xd474a4f04d59f2d78a41ed2e5a392671a4f07c46c03c5457eda24d3b6842da78`. |
| 301 | `profile_hash` | 32 bytes | Fingerprint of the collateral mint at creation, including its mint and freeze authorities. |
| 333 | `salt` | u64 | Creator's salt. |
| 341 | `expiry` | i64 | Expiry time, unix seconds. |
| 349 | `window` | u64 | Exercise window after expiry, in seconds. 60 to 3,600. |
| 357 | `strike_e8` | u64 | Strike in USD per whole token, times 10^8. |
| 365 | `max_quantity_atoms` | u64 | Largest single fill, in collateral atoms. Not a cap on the market's total. |
| 373 | `fee_bps` | u16 | Fee taken from the gross premium, in basis points. At most 1,000. |
| 375 | `paused` | bool | `true`: new fills fail. Exits still work. |

If the collateral mint changes after a market is created (for example a new mint authority), the stored `profile_hash` no longer matches and new fills on that market fail with `MarketV3Identity` (8201).

## PositionV3

One filled quote. Created by `fill_v3`, which the customer signs and pays rent for. A put fill, `fill_put_v3`, creates the same 652-byte account at the same seeds, with the differences noted below.

| | |
| --- | --- |
| Seeds | `"position"`, quote key (20 bytes), nonce (u64 LE) |
| Size | 652 bytes |
| SDK | `derivePosition(makerEthAddress, nonce, mint)`, [`decodePositionV3`](https://docs.covr.markets/reference/sdk/settlement.md#decodepositionv3) |

| Offset | Field | Type | Meaning |
| --- | --- | --- | --- |
| 8 | `version` | u8 | Always 3. |
| 9 | `bump` | u8 | PDA bump. |
| 10 | `collateral_vault_bump` | u8 | Bump of the collateral vault. |
| 11 | `strike_escrow_bump` | u8 | Bump of the strike escrow address. |
| 12 | `state` | u8 | 0 open, 1 pending delivery, 2 exercised, 3 released, 4 early closed, 5 cancelled by both parties. |
| 13 | `timeout_anchor` | u8 | 0 ordinary, 1 restricted, 2 put. |
| 14 | `collateral_decimals` | u8 | Decimals of the collateral. |
| 15 | `payment_decimals` | u8 | 6. |
| 16 | `maker` | Pubkey | Your Maker. |
| 48 | `maker_authority` | Pubkey | Your authority. Exercised collateral goes to a token account it owns. |
| 80 | `maker_eth_address` | 20 bytes | Your quote key. |
| 100 | `writer` | Pubkey | The current owner of the position: receives the strike at exercise, or the collateral at release. Starts as the customer who filled. |
| 132 | `terms_account` | Pubkey | The MarketV3 address. |
| 164 | `terms_id` | 32 bytes | Copied from the market. |
| 196 | `profile_hash` | 32 bytes | Copied from the market. |
| 228 | `genesis_hash` | Pubkey | Mainnet genesis hash. |
| 260 | `deployment_id` | 32 bytes | Equals `DEPLOYMENT_ID`. |
| 292 | `collateral_mint` | Pubkey | Collateral mint. |
| 324 | `collateral_program` | Pubkey | Token program of the collateral. |
| 356 | `payment_mint` | Pubkey | USDC mint. On a put, the market's payment mint. |
| 388 | `payment_program` | Pubkey | SPL Token program. |
| 420 | `policy` | Pubkey | Your MintPolicyV1 for this mint. |
| 452 | `usage` | Pubkey | Your MintUsageV1 for this mint. |
| 484 | `collateral_vault` | Pubkey | Token account holding the locked collateral. On a put, the address is derived but never created. |
| 516 | `strike_escrow` | Pubkey | Strike escrow address. Used by restricted positions and by puts, where it holds the customer's locked cash. |
| 548 | `nonce` | u64 | The quote nonce that opened it. |
| 556 | `admission_generation` | u64 | Your mint policy's `generation` at fill time. |
| 564 | `quantity_atoms` | u64 | Collateral locked, in collateral atoms. |
| 572 | `gross_premium_usdc` | u64 | Premium your vault paid, fee included, in USDC atoms. |
| 580 | `strike_usdc` | u64 | USDC your vault pays if you exercise, in USDC atoms. On a put: T, the cash the customer locked, in atoms of the payment token. |
| 588 | `opened_at` | i64 | Fill time. |
| 596 | `expiry` | i64 | Market expiry. |
| 604 | `exercise_window_seconds` | u64 | Market window. |
| 612 | `cancellation_timeout_seconds` | u64 | 0 for ordinary. 604800 for restricted. |
| 620 | `intent_generation` | u64 | Restricted only: 1 once funded. |
| 628 | `funded_at` | i64 | Restricted only: when the strike was escrowed. |
| 636 | `cancel_eligible_at` | i64 | Restricted only: `funded_at + cancellation_timeout_seconds`. |
| 644 | `funded_strike_usdc` | u64 | Restricted only: strike escrowed, in USDC atoms. |

A put position uses states 0, 2, 3 and 4 only. SDK 0.1.1's [`decodePositionV3`](https://docs.covr.markets/reference/sdk/settlement.md#decodepositionv3) throws `PositionV3: timeout anchor` on a put position.

Time rules for an ordinary position, with `deadline = expiry + exercise_window_seconds`:

| Clock | Allowed |
| --- | --- |
| `opened_at <= now < expiry` | Early close by the writer, transfer by the writer. |
| `expiry <= now < deadline` | `exercise_v3` by your authority or operator. |
| `now >= deadline` | `release_v3` by anyone. |

`decodePositionV3` also returns `status` (`open`, `pending_delivery`, `exercised`, `released`, `early_closed`, `bilaterally_canceled`), `exerciseDeadline`, and your Maker's `makerOperator` and `makerMinNonce` from the same read.

## Position collateral vault

Holds the customer's collateral while the position is open. Created by `fill_v3`. Exercise, release and early close empty it and close it. Its rent goes to the writer's collateral token account.

| | |
| --- | --- |
| Seeds | `"collateral"`, PositionV3 |
| Owner | The market's collateral token program. Its token authority is the PositionV3 PDA. |
| SDK | `derivePosition(...).collateralVault` |

## Other accounts

| Account | Seeds | Size | Created by | Notes |
| --- | --- | --- | --- | --- |
| Strike escrow | `"strike-escrow-v3"`, PositionV3 | token account | `fund_restricted_exercise_v3`, or `fill_put_v3` for a put | Restricted: holds the funded strike until delivery or cancellation. Put: holds the customer's locked cash (see [Put accounts](#put-accounts)). |
| CloseReceipt | `"close-receipt"`, Maker, close nonce (u64 LE) | 121 | `early_close_v3` (writer pays) | Makes each early-close nonce single-use. |
| SaleReceipt | `"sale-receipt"`, buying Maker, nonce (u64 LE) | 153 | `buy_position_v3` (seller pays) | Makes each sale nonce single-use. |
| MintPurchasePolicyV1 | `"mint-purchase-policy"`, Maker, mint | 261 | `initialize_mint_purchase_policy_v1` | Caps for buying positions. Needed only for `buy_position_v3`. |
| MintPurchaseUsageV1 | `"mint-purchase-usage"`, Maker, mint | 221 | `initialize_mint_purchase_policy_v1` | Lifetime purchase totals. |
| FlashExercisePolicyV1 | `"flash-policy-v1"`, Maker, collateral mint, USDC mint | 277 | `initialize_flash_exercise_policy_v1` | Optional. Limits for flash exercise. Layout in [Flash exercise](https://docs.covr.markets/concepts/flash-exercise.md#layout). |
| Flash context, input, output | `"flash-context-v1"`, `"flash-input-v1"`, `"flash-output-v1"`, each with the PositionV3 | 464, 165, 165 | `begin_flash_exercise_v3` | Temporary. Closed by `finish_flash_exercise_v3` in the same transaction. |

## Put accounts

The maker accounts that cash-secured puts use, added on 4 November 2026. Desks cannot quote puts yet, and `@covrfun/maker-sdk` 0.1.1 has no derivation or decoder for any of them. Each is keyed by your Maker plus the asset A, the payment token P, or both, so caps in one payment token never mix with another. The order in which you create them is in [Put setup](https://docs.covr.markets/reference/program/instructions.md#put-setup). Field-by-field layouts are on the Users page [Accounts > Put accounts](https://docs.covr.markets/users/contract/accounts.md#put-accounts).

| Account | Seeds | Size | Created by | What it holds |
| --- | --- | --- | --- | --- |
| Vault for P | `"stable"`, Maker, P | token account | `initialize_vault` with mint P | Pays put premiums. Receives the cash at put exercise and early close. For USDC, this is your existing USDC vault. |
| PremiumBudget for P | `"premium-budget"`, Maker, P | 90 | `initialize_vault` with mint P | Optional lifetime cap on premium paid in P. |
| PaymentSpendLedgerV1 | `"payment-spend-v1"`, Maker, P | 155 | `init_payment_spend_ledger_v1` | Splits the budget's `spent` into what came before the ledger and call or put spending since. For P other than USDC, every put fill and purchase checks that the parts add up to `spent`. |
| PutExposureV1 | `"put-exposure-v1"`, Maker, A | 89 | `init_put_exposure_v1` | `limit` and `active`: asset atoms you owe on open puts, across every payment token. Same layout as Exposure. |
| MintPolicyV2 | `"mint-policy-v2"`, Maker, A, P, kind byte `2` | 377 | `init_mint_policy_v2` | Your put caps and the put terms you accept, for one asset and payment token. Born disabled. |
| MintUsageV2 | `"mint-usage-v2"`, Maker, A, P, kind byte `2` | 262 | `init_mint_policy_v2` | Running totals the put policy is checked against. Ready at creation, no bootstrap step. |
| Put asset vault | `"put-asset-v1"`, Maker, A | token account | `init_put_asset_vault_v1` | The asset you deliver at a funded put exercise. Its token authority is your Maker. Only your authority can deposit or withdraw. |
| FlashPutPolicyV1 | `"flash-put-policy-v1"`, Maker, A, P | 277 | `init_flash_put_policy_v1` | Optional. Limits for flash put exercise. Born disabled. |
| MintPurchasePolicyV2, MintPurchaseUsageV2 | `"mint-purchase-policy-v2"`, `"mint-purchase-usage-v2"`, then Maker, A, P, kind byte `2` | 262, 222 | `init_mint_purchase_policy_v2` | Optional. Caps for buying put positions with `buy_put_position_v3`. Born disabled. |
| Put strike escrow | `"strike-escrow-v3"`, PositionV3 | token account | `fill_put_v3` (the customer pays) | The customer's locked cash T for one put. Its token authority is the position. |

The PutExposureV1 fields sit at the same offsets as [Exposure](#exposure): `maker` at 8, `collateral` at 40, `limit` at 72, `active` at 80, `bump` at 88.

## Example: read your Maker and vault

```ts
import { createSolanaRpc } from '@solana/kit';
import { PROGRAM_ID, TOKEN_PROGRAM, deriveMaker, deriveVault, decodeMaker } from '@covrfun/maker-sdk';

const rpc = createSolanaRpc('https://<your rpc>');
const makerEth = '0x…'; // your quote key address
const { maker } = await deriveMaker(makerEth);
const { vault, premiumBudget } = await deriveVault(maker);

const { value } = await rpc
  .getMultipleAccounts([maker, vault, premiumBudget], { commitment: 'finalized', encoding: 'base64' })
  .send();
const [m, v, b] = value;
if (!m || m.owner !== PROGRAM_ID) throw Error('Maker missing or not owned by the program');
if (!v || v.owner !== TOKEN_PROGRAM) throw Error('USDC vault missing');
if (!b || b.owner !== PROGRAM_ID) throw Error('PremiumBudget missing');

const bytes = (a: { data: readonly [string, string] }) => Buffer.from(a.data[0], 'base64');
const decoded = await decodeMaker(maker, bytes(m), makerEth);
const vaultUsdc = bytes(v).readBigUInt64LE(64); // SPL token account amount
const budget = bytes(b);

console.log({
  minNonce: decoded.minNonce,
  operator: decoded.operator,
  vaultUsdc,
  budgetLimit: budget.readBigUInt64LE(72),
  budgetSpent: budget.readBigUInt64LE(80),
  budgetEnabled: budget[88] === 1,
});
```

---

Source: https://docs.covr.markets/reference/program/accounts · Part of covr Docs, https://docs.covr.markets/llms.txt
