Protocol Facts#
<!-- @generated by scripts/generate_docs_protocol_facts.mjs from executable source. --> <!-- prettier-ignore-start -->This reference is derived from the current program sources. It is a mechanical index, not a readiness or deployment signoff.
Deep orderbook#
The order record is 136 bytes. Its optional client_order_id is 16 bytes at offset 73.
The account formula is 192 + 336 * capacity: a 128-byte header, two 32-byte side headers, and 32-byte nodes plus 136-byte orders per capacity unit on each side.
| Capacity | Account bytes |
|---|---|
| 4096 | 1,376,448 |
Order fields#
| Offset | Bytes | Field |
|---|---|---|
| 0 | 8 | order_id |
| 8 | 32 | owner |
| 40 | 8 | quantity |
| 48 | 8 | original_quantity |
| 56 | 8 | timestamp |
| 64 | 2 | price_bps |
| 66 | 1 | original_side |
| 67 | 1 | is_active |
| 68 | 1 | status |
| 69 | 4 | max_age_seconds_bytes |
| 73 | 16 | client_order_id |
| 89 | 4 | trading_generation_bytes |
| 93 | 43 | index |
Order sides#
Each side rests in its own outcome lane at its own price; NO prices are never complemented. Cancellation returns the same funding the order locked.
| Side | Canonical side | Lane | Locked and returned on cancel |
|---|---|---|---|
BuyYes | Bid | YES | stablecoin collateral in the market vault |
SellYes | Ask | YES | YES shares in the YES escrow |
BuyNo | Bid | NO | stablecoin collateral in the market vault |
SellNo | Ask | NO | NO shares in the NO escrow |
Fee split#
New configs use a taker fee coefficient of 400 bps. Governance can set it from 0 to 10000 bps. For an individual book fill, the fee is the ceiling of quote notional times the coefficient times the complement of the fill price in the taker's lane, divided by 10,000 squared.
The default fee allocation is defined by FeeSplit5::TARGET.
| Recipient | Basis points of collected fee |
|---|---|
protocol_bps | 4500 |
creator_bps | 500 |
referral_bps | 500 |
builder_bps | 500 |
maker_bps | 4000 |
The five values sum to 10000 bps of fee. Eligible maker rebates are floored per fill; protocol receives the remainder, including ineligible maker, forfeited referral, and rounding dust.
FeeSplit5::TARGET is the allocation every new ConfigAccount ships with. The live allocation is governance state: UpdateFeeConfig can retune it within the source bounds, so integrations must read the deployed config rather than assume these defaults.
Routes and state inventory#
The four inventories below are generated separately. Public routes, parser surfaces, the canonical book size, and the canonical trader-ledger size are distinct facts and are never summed into one count.
Public routes#
The public route table has 191 routes spanning 0x00–0xBE in one contiguous block (0x00–0xBE). 178 require the two-account recorder tail on every call; 13 are eventless and never require it.
| Tag | Route | Recorder tail | Payload bytes |
|---|---|---|---|
0x00 | InitializeConfig | Required | 2 |
0x01 | UpdateAuthority | Required | 32 |
0x02 | ClaimAuthority | Required | 0 |
0x03 | CreateMarket | Required | 30 |
0x04 | SnapshotEnd | Required | 0 |
0x05 | ResolveMarket | Required | 0 |
0x06 | ExpireMarket | Required | 0 |
0x07 | MintShares | Required | 8 |
0x08 | DepositFunds | Required | 8 |
0x09 | WithdrawFunds | Required | 9 |
0x0A | WithdrawShares | Required | 9 |
0x0B | MergeCompleteSet | Required | 25 |
0x0C | PlaceOrder | Required | 86 |
0x0D | PlaceMultiplePostOnly | Required | at least 61 |
0x0E | SwapWithFreeFunds | Required | 88 |
0x0F | PlaceLimitWithFreeFunds | Required | 88 |
0x10 | BatchPostOnlyWithFreeFunds | Required | at least 63 |
0x11 | CancelOrder | Required | 8 |
0x12 | CancelMultipleOrdersById | Required | variable |
0x13 | ReduceOrder | Required | 16 |
0x14 | CancelMultipleOrdersByIdWithFreeFunds | Required | variable |
0x15 | ReduceOrderWithFreeFunds | Required | 17 |
0x16 | ReclaimExpiredOrder | Required | 8 |
0x17 | Redeem | Required | 9 |
0x18 | ForceClose | Required | 0 |
0x19 | MarkPositionSettled | Required | 0 |
0x1A | ClosePosition | Required | 0 |
0x1B | CloseMarket | Required | 0 |
0x1C | UpdateFeeConfig | Required | 18 |
0x1D | UpdateTreasuryRecipients | Required | 0 |
0x1E | SetReferrer | Required | 0 |
0x1F | ClaimCreatorFees | Required | 0 |
0x20 | Pause | Required | 0 |
0x21 | Unpause | Required | 0 |
0x22 | EnablePostOnlyMode | Required | 0 |
0x23 | DisablePostOnlyMode | Required | 0 |
0x24 | UpdateTickSize | Required | 2 |
0x25 | UpdateMinRestingNotional | Required | 8 |
0x26 | UpdateMarketCap | Required | 8 |
0x27 | SetMarketEmergencyStatus | Required | 33 |
0x28 | ForceCancelMarketOrders | Required | 8 |
0x29 | SetPauser | Required | 32 |
0x2A | UpdateOperationalParams | Required | 115 |
0x2B | EnsureTraderLedgerSpace | Required | variable |
0x2C | EnsureDeepOrderbookSpace | Not required | variable |
0x2D | TopUpCloserRewards | Required | 0 |
0x2E | InitSplineSeries | Not required | 409 |
0x2F | UpdateSeriesTemplate | Not required | 702 |
0x30 | UpdateSeatQuote | Not required | variable |
0x31 | AttachSeat | Required | 8 |
0x32 | SettleSeat | Required | 0 |
0x33 | RecoverSeat | Required | 0 |
0x34 | DepositSeriesVault | Not required | 8 |
0x35 | WithdrawSeriesVault | Not required | 8 |
0x36 | CloseSplineSeries | Required | 0 |
0x37 | BeginSourceMarket | Required | variable |
0x38 | OpenSourceMarket | Required | variable |
0x39 | ExpireExternalMarket | Required | 0 |
0x3A | ClosePreallocatedChild | Not required | 1 |
0x3B | ReclaimExternalMarketPreallocation | Required | 0 |
0x3C | TopUpExternalProgressReserve | Not required | 0 |
0x3D | EvacuateIdleSeat | Required | 12 |
0x3E | ResolveSourceMarket | Required | variable |
0x3F | HaltSourceMarket | Required | variable |
0x40 | UpdateSourceClose | Required | variable |
0x41 | FinalizeSourceMarket | Required | 0 |
0x42 | CloseSourceAccounts | Required | 0 |
0x43 | InitializeSourceControl | Required | 1 |
0x44 | SetSourceProfilePolicy | Required | 128 |
0x45 | InitializeWitnessRegistry | Required | 69 |
0x46 | RevokeWitnessSlot | Required | 5 |
0x47 | SetWitnessMeasurement | Required | 35 |
0x48 | RegisterAttestedWitness | Required | 497 |
0x49 | RotateSeatQuoteAuthority | Not required | 48 |
0x4A | ApproveBuilder | Required | 10 |
0x4B | RevokeBuilder | Required | 0 |
0x4C | SetCurrencyFreezeException | Required | 1 |
0x4D | RegisterCurrency | Required | 0 |
0x4E | InitializeCurrencyReferralTreasury | Required | 1 |
0x4F | InitializeCurrencyReferrerEarnings | Required | 1 |
0x50 | ClaimCurrencyReferrerEarnings | Required | 0 |
0x51 | RollupCurrencyReferralFees | Required | 1 |
0x52 | InitializeCurrencyProtocolTreasury | Required | 1 |
0x53 | WithdrawCurrencyProtocolTreasury | Required | 9 |
0x54 | CancelOrderByClientId | Required | 18 |
0x55 | CancelOwnerOrders | Required | 26 |
0x56 | ConfigureStrategy | Required | 523 |
0x57 | StopStrategy | Required | 1 |
0x58 | ResumeStrategy | Required | 0 |
0x59 | CloseStrategy | Required | 0 |
0x5A | ResetStrategyCapital | Required | 8 |
0x5B | UpdateSeatTables | Required | 326 |
0x5C | TopUpSeatCommitment | Required | 8 |
0x5D | AttachSeatFromSeries | Required | 0 |
0x5E | UpdateSeriesSubscription | Required | 66 |
0x5F | TopUpSeriesLamports | Required | 8 |
0x60 | FlagSeatBelowFloor | Required | 0 |
0x61 | MakeSeatDormant | Required | 0 |
0x62 | CloseSeat | Required | 0 |
0x63 | AssertBalances | Not required | 53 |
0x64 | ReplaceMakerQuotes | Not required | 130 |
0x65 | SetMakerQuoteAuthority | Required | 100 |
0x66 | InitializeMakerQuoteState | Required | 56 |
0x67 | CloseMakerQuoteState | Required | 0 |
0x68 | FundMakerQuoteInventory | Required | 18 |
0x69 | WithdrawMakerQuoteInventory | Required | 10 |
0x6A | ReclaimExpiredOrders | Required | 129 |
0x6B | CreateConfidentialMarket | Required | 295 |
0x6C | RecordConfidentialTerminal | Required | variable |
0x6D | ClaimOwnerPayoutEscrow | Required | 0 |
0x6E | UpdateSeatParams | Not required | 154 |
0x6F | UpdateSeatProgram | Required | 360 |
0x70 | OpenConfidentialJob | Not required | 143 |
0x71 | AppendConfidentialJobPage | Required | variable |
0x72 | SealConfidentialJob | Required | 0 |
0x73 | CommitConfidentialJob | Required | 0 |
0x74 | AbortConfidentialJob | Required | 0 |
0x75 | TopUpConfidentialWorkBudget | Required | variable |
0x76 | IncreaseConfidentialCap | Required | 8 |
0x77 | CloseConfidentialMarket | Required | 0 |
0x78 | FundConfidentialEscrow | Required | 322 |
0x79 | PrepareConfidentialStep | Required | 359 |
0x7A | RefundConfidentialObject | Required | 35 |
0x7B | CreateConfidentialClaims | Required | 609 |
0x7C | MaterializeConfidentialClaim | Required | 69 |
0x7D | RefundConfidentialClaim | Required | 35 |
0x7E | UploadConfidentialCapsule | Required | at least 2 |
0x7F | ReclaimConfidentialCapsuleSlot | Required | 0 |
0x80 | ActivateConfidentialRfq | Required | at least 476 |
0x81 | SettleConfidentialCell | Required | 78 |
0x82 | SettleConfidentialPublicCell | Required | at least 52 |
0x83 | ClaimConfidentialRole | Required | 634 |
0x84 | CloseConfidentialCellByAgreement | Required | 76 |
0x85 | NovateConfidentialCell | Required | 84 |
0x86 | AssignConfidentialCell | Required | 68 |
0x87 | ReassignConfidentialClaim | Required | 67 |
0x88 | RekeyConfidentialCell | Required | 67 |
0x89 | PostConfidentialRemainingOrder | Required | 67 |
0x8A | FillConfidentialOrder | Required | 103 |
0x8B | RefundConfidentialRemainder | Required | 51 |
0x8C | SplitConfidentialCountedRun | Required | 51 |
0x8D | ReplaceConfidentialCellDyadic | Required | 107 |
0x8E | SplitConfidentialCell | Required | 70 |
0x8F | RekeyConfidentialSplitRole | Required | 35 |
0x90 | MergeConfidentialCells | Required | 37 |
0x91 | CertifyConfidentialClosure | Required | 102 |
0x92 | ReclaimConfidentialStorage | Required | 0 |
0x93 | CommitConfidentialOrder | Required | 200 |
0x94 | CancelConfidentialOrder | Required | 40 |
0x95 | SealConfidentialEpochCutoff | Required | 40 |
0x96 | RevealConfidentialOrder | Required | 152 |
0x97 | ActivateConfidentialStanding | Required | 48 |
0x98 | FinalizeConfidentialEpoch | Required | 40 |
0x99 | SubmitConfidentialClearingPage | Required | 128 |
0x9A | VerifyConfidentialPlan | Required | 72 |
0x9B | ExecuteConfidentialBatchAtomic | Required | 80 |
0x9C | CompleteConfidentialBatch | Required | 16 |
0x9D | CommitConfidentialStanding | Required | 272 |
0x9E | CancelConfidentialStanding | Required | 8 |
0x9F | ReleaseConfidentialStanding | Required | 48 |
0xA0 | AmendConfidentialStanding | Required | 120 |
0xA1 | LockConfidentialSource | Required | 112 |
0xA2 | NormalizeConfidentialSource | Required | 72 |
0xA3 | ReleaseConfidentialSourceLock | Required | 8 |
0xA4 | CreateShieldedOutcomeMints | Required | 35 |
0xA5 | MintShieldedPair | Required | 10 |
0xA6 | MergeShieldedSet | Required | 10 |
0xA7 | RedeemShieldedTerminal | Required | 11 |
0xA8 | BridgeConfidentialCellToTokens | Required | 42 |
0xA9 | BridgeTokensToConfidentialCell | Required | 42 |
0xAA | OpenConfidentialRoute | Required | 213 |
0xAB | RefundConfidentialRouteLeg | Required | 2 |
0xAC | ActivateConfidentialFinancedCell | Required | 177 |
0xAD | RepayConfidentialFinancing | Required | 41 |
0xAE | SettleConfidentialFinancedRole | Required | 50 |
0xAF | ExchangeConfidentialCellPartForTokens | Required | 188 |
0xB0 | ExchangeTokensForConfidentialCellPart | Required | 188 |
0xB1 | AdmitContinuousAction | Required | 64 |
0xB2 | ProcessContinuousAction | Required | 12 |
0xB3 | FillContinuousStep | Required | 24 |
0xB4 | TriggerContinuousRecoveryBarrier | Required | 8 |
0xB5 | PublishSplineOffer | Required | 166 |
0xB6 | FillSplineOffer | Required | 29 |
0xB7 | ExpireSplineOffer | Required | 8 |
0xB8 | GrantSplineDelegate | Required | 90 |
0xB9 | RevokeSplineDelegate | Required | 8 |
0xBA | VerifyContinuousTreeParity | Required | 7 |
0xBB | RebuildContinuousTree | Required | 7 |
0xBC | DepositConfidentialReservePool | Required | 33 |
0xBD | WithdrawConfidentialReservePool | Required | 9 |
0xBE | RefreshReservePoolOffer | Required | 49 |
Parser surfaces#
The instruction parser dispatches 192 payload surfaces: the 191 public routes plus the internal LOG = 0xFF recorder route, which is not a public instruction. Every byte from 0xBF through 0xFE is unassigned and rejected before account access.
Book size#
Every market has one canonical deep orderbook: two 4096-order arenas (4096 orders per side). There are no capacity tiers; the account size is listed under Deep orderbook above, and every other length is rejected.
Trader-ledger size#
Every market has one canonical trader ledger of 8193 seats. There are no seat options; every other ledger length is rejected.
Unified mirror profiles#
The profile bindings the program compiles are docs/design/compact-reclaim-v2/schemas/native-profile-bindings.json. A profile binding defines accepted data shape; it is not evidence that a provider or verifier deployment is enabled.
| Profile ID | Profile | Provider ID | Mode |
|---|---|---|---|
| 101 | kalshi-binary | 0 | VENUE |
| 102 | kalshi-event-contracts | 0 | VENUE |
| 202 | polymarket-v2-binary | 0 | VENUE |
| 203 | polymarket-v2-negrisk-atomic | 0 | VENUE |
| 204 | polymarket-v2-negrisk-incremental | 0 | VENUE |
| 301 | opticodds-nba-moneyline | 1 | SOURCE_GRADE |
| 302 | opticodds-nba-spread | 1 | SOURCE_GRADE |
| 303 | opticodds-nba-total | 1 | SOURCE_GRADE |
| 311 | opticodds-nfl-moneyline | 1 | SOURCE_GRADE |
| 312 | opticodds-nfl-spread | 1 | SOURCE_GRADE |
| 313 | opticodds-nfl-total | 1 | SOURCE_GRADE |
Source evidence and creation remain fail-closed until deployment profiles are enabled with reviewed evidence. Proofless timeout and recovery exits remain available under their on-chain lifecycle rules.
Event inventory#
The schema has 202 assigned layouts, one for every tag from 1 to 202. No tag is reserved; tag 0 and every tag above 202 are unknown.
| Tag | Event | Bytes including tag |
|---|---|---|
| 1 | OrderFilled | 160 |
| 2 | OrderFilledMaker | 59 |
| 3 | OrderPlaced | 52 |
| 4 | OrderEvicted | 52 |
| 5 | SharesMinted | 49 |
| 6 | SharesRedeemed | 65 |
| 7 | MarketResolved | 2 |
| 8 | MarketExpired | 1 |
| 9 | ForceClosed | 49 |
| 10 | CreatorFeesDeferred | 9 |
| 11 | CreatorFeesClaimed | 49 |
| 12 | OrderCancelled | 50 |
| 13 | OrderForceCancelled | 82 |
| 14 | OrderReclaimed | 90 |
| 15 | SnapshotCaptured | 9 |
| 16 | SharesWithdrawn | 42 |
| 17 | MarketCreated | 49 |
| 18 | MarketClosed | 9 |
| 19 | ConfigInitialized | 291 |
| 20 | ProtocolPaused | 33 |
| 21 | ProtocolUnpaused | 33 |
| 22 | TickSizeUpdated | 3 |
| 23 | MinRestingNotionalUpdated | 9 |
| 24 | FeeConfigUpdated | 19 |
| 25 | ReferrerSet | 73 |
| 26 | ReferralAccrued | 73 |
| 27 | ReferralForfeited | 42 |
| 28 | AuthoritySuccessorNamed | 65 |
| 29 | AuthorityClaimed | 65 |
| 30 | PostOnlyModeEnabled | 34 |
| 31 | PostOnlyModeDisabled | 34 |
| 32 | MarketEmergencyStatusChanged | 67 |
| 33 | PositionClosed | 73 |
| 34 | TreasuryRecipientsUpdated | 297 |
| 35 | FundsDeposited | 49 |
| 36 | FundsWithdrawn | 49 |
| 37 | MakerFillApplied | 113 |
| 38 | OrderReduced | 60 |
| 39 | MarkPositionSettled | 42 |
| 40 | TraderLedgerResized | 49 |
| 41 | ForceCloseOrderRemoved | 41 |
| 42 | ForceCloseProgress | 78 |
| 43 | UpdateOperationalParams | 124 |
| 44 | PauserUpdated | 97 |
| 45 | ReferralFeeDeferred | 57 |
| 46 | ReferralRollupCompleted | 58 |
| 47 | ReferralPendingForfeited | 49 |
| 48 | CloserRewardsToppedUp | 49 |
| 49 | SelfTradePrevented | 59 |
| 50 | MakerRebateCredited | 95 |
| 51 | SplineFill | 149 |
| 52 | SeatAttached | 154 |
| 53 | SeatSettled | 105 |
| 54 | SeatShapeUpdated | 51 |
| 55 | SplineSeriesInitialized | 97 |
| 56 | SeriesVaultDeposited | 81 |
| 57 | SeriesVaultWithdrawn | 81 |
| 58 | SeatClosed | 105 |
| 59 | ExternalMarketOpened | 86 |
| 60 | ExternalMarketPreallocationBegun | 179 |
| 61 | ExternalMarketPreallocationConsumed | 113 |
| 62 | ExternalMarketPreallocationReclaimed | 161 |
| 63 | SeatRecovered | 97 |
| 64 | OrderRemainderDiscarded | 13 |
| 65 | EconomicDeltaApplied | 89 |
| 66 | CompleteSetMerged | 73 |
| 67 | NativeResolutionRecorded | 116 |
| 68 | IdleSeatEvacuated | 237 |
| 69 | SourceMarketPrepared | 133 |
| 70 | SourceMarketOpened | 121 |
| 71 | SourceObservationAccepted | 180 |
| 72 | SourceConflictDetected | 83 |
| 73 | SourceMarketFinalized | 184 |
| 74 | SourceMarketExpired | 200 |
| 75 | SourceAccountsClosed | 238 |
| 76 | SourceProfilePolicyChanged | 299 |
| 77 | WitnessSlotSet | 88 |
| 78 | WitnessSlotRevoked | 46 |
| 79 | WitnessMeasurementSet | 44 |
| 80 | AttestedWitnessRegistered | 118 |
| 81 | SupplyCapUpdated | 49 |
| 82 | SourceResultAccepted | 181 |
| 83 | WitnessRegistryInitialized | 102 |
| 84 | BuilderApproved | 84 |
| 85 | BuilderApprovalRevoked | 65 |
| 86 | CurrencyFreezeExceptionChanged | 98 |
| 87 | CurrencyRegistered | 102 |
| 88 | CurrencyReferralTreasuryInitialized | 162 |
| 89 | CurrencyReferrerEarningsInitialized | 130 |
| 90 | CurrencyReferrerEarningsClaimed | 138 |
| 91 | CurrencyProtocolTreasuryInitialized | 162 |
| 92 | CurrencyProtocolTreasuryWithdrawn | 210 |
| 93 | CancelSessionProgressed | 68 |
| 94 | StrategyConfigured | 586 |
| 95 | StrategyStopped | 197 |
| 96 | StrategyResumed | 35 |
| 97 | StrategyClosed | 51 |
| 98 | StrategyCapitalReset | 59 |
| 99 | OrderReclaimedWithReason | 91 |
| 100 | SeriesTemplateUpdated | 43 |
| 101 | SeriesSubscriptionUpdated | 52 |
| 102 | SeriesLamportsToppedUp | 81 |
| 103 | SplineSeriesClosed | 81 |
| 104 | SeatCommitmentToppedUp | 81 |
| 105 | SeatFlaggedBelowFloor | 107 |
| 106 | SeatMadeDormant | 101 |
| 107 | MakerQuoteAuthoritySet | 142 |
| 108 | MakerQuoteStateInitialized | 129 |
| 109 | MakerQuoteStateClosed | 149 |
| 110 | MakerQuoteInventoryFunded | 131 |
| 111 | MakerQuoteInventoryWithdrawn | 115 |
| 112 | SourceMarketOpeningSnapshot | 149 |
| 113 | ConfidentialMarketCreated | 79 |
| 114 | ConfidentialTerminalRecorded | 134 |
| 115 | CloserRewardPaid | 48 |
| 116 | OwnerPayoutEscrowed | 106 |
| 117 | OwnerPayoutEscrowClaimed | 137 |
| 118 | OrderReclaimBatchProgressed | 102 |
| 119 | SeatProgramInstalled | 97 |
| 120 | ExactInputExecuted | 75 |
| 121 | ConfidentialJobAdmissionRecorded | 103 |
| 122 | ConfidentialJobSealed | 89 |
| 123 | ConfidentialJobCommitted | 73 |
| 124 | ConfidentialJobAborted | 74 |
| 125 | ConfidentialWorkBudgetToppedUp | 81 |
| 126 | ConfidentialCapIncreased | 81 |
| 127 | ConfidentialMarketClosed | 113 |
| 128 | ConfidentialEscrowFunded | 108 |
| 129 | ConfidentialStepPrepared | 101 |
| 130 | ConfidentialObjectRefunded | 67 |
| 131 | ConfidentialClaimsCreated | 101 |
| 132 | ConfidentialClaimMaterialized | 66 |
| 133 | ConfidentialClaimRefunded | 66 |
| 134 | ConfidentialCapsuleUploaded | 99 |
| 135 | ConfidentialCapsuleSlotReclaimed | 73 |
| 136 | ConfidentialRfqActivated | 113 |
| 137 | ConfidentialCellSettled | 82 |
| 138 | ConfidentialPublicCellSettled | 74 |
| 139 | ConfidentialRoleClaimed | 107 |
| 140 | ConfidentialMirrorTerminalRecorded | 66 |
| 141 | ConfidentialCellClosedByAgreement | 73 |
| 142 | ConfidentialCellNovated | 105 |
| 143 | ConfidentialCellAssigned | 97 |
| 144 | ConfidentialClaimReassigned | 97 |
| 145 | ConfidentialCellRekeyed | 97 |
| 146 | ConfidentialRemainingOrderPosted | 81 |
| 147 | ConfidentialOrderFilled | 89 |
| 148 | ConfidentialRemainderRefunded | 73 |
| 149 | ConfidentialCountedRunSplit | 81 |
| 150 | ConfidentialCellReplacedDyadic | 129 |
| 151 | ConfidentialCellSplit | 67 |
| 152 | ConfidentialSplitRoleRekeyed | 66 |
| 153 | ConfidentialCellsMerged | 67 |
| 154 | ConfidentialFeeAssessed | 73 |
| 155 | ConfidentialClosureCertified | 101 |
| 156 | ConfidentialStorageReclaimed | 73 |
| 157 | ConfidentialOrderCommitted | 113 |
| 158 | ConfidentialOrderCancelled | 74 |
| 159 | ConfidentialEpochCutoffSealed | 77 |
| 160 | ConfidentialOrderRevealed | 77 |
| 161 | ConfidentialStandingActivated | 77 |
| 162 | ConfidentialEpochFinalized | 77 |
| 163 | ConfidentialClearingPageSubmitted | 77 |
| 164 | ConfidentialPlanVerified | 73 |
| 165 | ConfidentialBatchExecutedAtomic | 81 |
| 166 | ConfidentialBatchManifestFrozen | 77 |
| 167 | ConfidentialBatchReady | 69 |
| 168 | ConfidentialBatchCompleted | 73 |
| 169 | ConfidentialStandingCommitted | 105 |
| 170 | ConfidentialStandingCancelled | 66 |
| 171 | ConfidentialStandingReleased | 73 |
| 172 | ConfidentialStandingAmended | 69 |
| 173 | ConfidentialSourceLocked | 105 |
| 174 | ConfidentialSourceNormalized | 99 |
| 175 | ConfidentialSourceLockReleased | 73 |
| 176 | ShieldedOutcomeMintsCreated | 97 |
| 177 | ShieldedPairMinted | 41 |
| 178 | ShieldedSetMerged | 41 |
| 179 | ShieldedTerminalRedeemed | 42 |
| 180 | ConfidentialCellBridgedToTokens | 73 |
| 181 | TokensBridgedToConfidentialCell | 73 |
| 182 | ConfidentialRouteOpened | 68 |
| 183 | ConfidentialRouteLegRefunded | 34 |
| 184 | ConfidentialFinancedCellActivated | 81 |
| 185 | ConfidentialFinancingRepaid | 73 |
| 186 | ConfidentialFinancedRoleSettled | 81 |
| 187 | ConfidentialCellPartExchangedForTokens | 73 |
| 188 | TokensExchangedForConfidentialCellPart | 73 |
| 189 | ContinuousActionAdmitted | 42 |
| 190 | ContinuousActionProcessed | 41 |
| 191 | ContinuousStepFilled | 53 |
| 192 | ContinuousRecoveryBarrierTriggered | 49 |
| 193 | SplineOfferPublished | 57 |
| 194 | SplineOfferFilled | 49 |
| 195 | SplineOfferExpired | 49 |
| 196 | SplineDelegateGranted | 81 |
| 197 | SplineDelegateRevoked | 41 |
| 198 | ContinuousTreeParityFailed | 37 |
| 199 | ConfidentialReservePoolDeposited | 41 |
| 200 | ConfidentialReservePoolWithdrawn | 41 |
| 201 | ReservePoolOfferRefreshed | 73 |
| 202 | ConfidentialCollectorFeesAggregated | 49 |
Keeper economics#
The closer reward is time-escalating: it rises linearly from 0 at the step's eligibility time to the class cap over the class ramp (spec/IX.md §5.7.1). Genesis schedule: oracle 1,710,000 lamports over 2,480 s; plain 200,000 lamports over 1,000 s. Each native market copies the schedule at creation and is funded with cap_oracle + 2 × cap_plain = 2,110,000 lamports above rent. Budget funding is not keeper revenue: only the reward-bearing routes below transfer lamports to a caller.
| Route | Tag | Classification | Lamports come from | Recipient | Amount | Cap |
|---|---|---|---|---|---|---|
CreateMarket | 0x03 | Budget-only | payer signer (the market creator) | market PDA rent-safe closer budget | cap_oracle + 2 × cap_plain above rent, schedule copied into the market | no reward is paid by this route |
TopUpCloserRewards | 0x2D | Budget-only | any payer signer (System Program transfer of the deficit only) | market PDA rent-safe closer budget | deficit up to the market copy of cap_oracle + 2 × cap_plain above rent | no reward is paid by this route |
SnapshotEnd | 0x04 | Reward-bearing | market PDA prepaid budget | caller account when it is the price update's write_authority | oracle-class curve from t_end: 0 → closer_cap_oracle_lamports over closer_ramp_oracle_seconds (market copy) | floored at lamports above rent-exempt minimum |
ResolveMarket | 0x05 | Reward-bearing | market PDA prepaid budget | caller account | plain-class curve from the SnapshotEnd landing time: 0 → closer_cap_plain_lamports over closer_ramp_plain_seconds (market copy) | floored at lamports above rent-exempt minimum |
ExpireMarket | 0x06 | Reward-bearing | market PDA prepaid budget | caller account | plain-class curve from t_end + window: 0 → closer_cap_plain_lamports over closer_ramp_plain_seconds (market copy) | floored at lamports above rent-exempt minimum |
ForceClose | 0x18 | No reward | none | none | 0 | pays no closer reward for any number of positions |
CloseMarket (0x1B) is not a closer-reward call site; remaining market lamports, including any unused budget, return to the market creator. A source market has no closer budget.
Reward-bearing call sites#
program/src/processor/expire_market.rsprogram/src/processor/resolve.rsprogram/src/processor/shared/settlement.rsprogram/src/processor/snapshot.rs