Economic Examples and Evidence#
These examples describe native markets and the shipped fee defaults. Read the current configuration and market rules before submitting a transaction. External markets can use different payout rules.
Native confidence intervals#
The program normalizes both snapshots to a common exponent before comparison.
The interval is [price − confidence, price + confidence].
The table uses normalized price units. Both snapshots use exponent −1 and confidence 1 in the encoded fixture.
| Start interval | End interval | Comparison | Outcome |
|---|---|---|---|
| [99.9, 100.1] | [102.9, 103.1] | End low > start high | UP |
| [102.9, 103.1] | [99.9, 100.1] | End high < start low | DOWN |
| [99.9, 100.1] | [100.0, 100.2] | Intervals overlap | Neutral EXPIRED |
| [99.9, 100.1] | [100.1, 100.3] | Intervals touch | Neutral EXPIRED |
| [99.9, 100.1] | [99.9, 100.1] | Equal intervals | Neutral EXPIRED |
Unrepresentable normalized values also fail neutral. Turning off the confidence-ratio guard does not change this interval classifier. Snapshot admission and terminal classification are separate checks. An invalid update can fail snapshot acquisition before classification. Expiry uses committed snapshots and the on-chain deadline. It does not accept a new price-update account.
Source: resolve_processor.rs (unavailable reference), compute_outcome_with_confidence.
Named unit fixtures: strict_interval_requires_non_overlapping_confidence_bands, strict_interval_touches_are_neutral,
strict_interval_normalizes_confidence_exponents, and unrepresentable_exponents_and_confidence_fail_neutral.
The native reason fixtures (unavailable reference) include
expire_with_overlapping_intervals_records_interval_overlap.
Payout is not profit#
One settlement unit has 1,000,000 base units in these examples. Quantities are whole native shares.
| Holding | Purchase cost | Terminal payout | Profit or loss before fees |
|---|---|---|---|
| 100 YES, neutral | 52 | 50 | −2 |
| 100 NO, neutral | 40 | 50 | +10 |
| 100 YES, DOWN | 52 | 0 | −52 |
| 100 YES plus 100 NO, any native outcome | 100 | 100 | 0 |
Subtract trading fees and SOL costs when calculating the final result. Payout arithmetic rounds down at the base-unit boundary. A tiny balance can produce rounding dust. For a complete trade and exit, see the trader exercise.
Fees and maker payment#
A fill of 200 shares at 0.50 settlement unit per share has 100 settlement units of notional. The shipped curve charges a fee of 2 settlement units. The amounts in the table are settlement units. With an eligible referrer and maker and no builder, the allocations sum to the collected fee.
| Recipient | Allocation | Amount |
|---|---|---|
| Protocol | 45% + unpaid 5% builder | 1.00 |
| Creator | 5% | 0.10 |
| Referrer | 5% | 0.10 |
| Builder | 5% (none named) | 0.00 |
| Eligible maker | 40% | 0.80 |
| Total | 100% | 2.00 |
Fee amounts round up. Recipient allocations round down; protocol receives the exact remainder.
Ineligible maker, referral and builder allocations also go to protocol.
Maker rebates credit TraderLedger.quote_free. WithdrawFunds transfers that available balance to the maker's wallet.
Creator fees and pending referral fees remain distinct liabilities until their respective payment paths run.
Source: fee.rs (unavailable reference) and the fee allocation contract.
Owner payment before closure#
Assume terminal cleanup finds 3 free quote units, 20 winning free shares, and a bid with 7 locked quote units. Assume all relevant order cleanup has completed before position settlement.
| Step | Owner's accounting | Transfer to creator |
|---|---|---|
| Terminal bid cleanup | 7 locked quote becomes 7 free quote | 0 |
| Owner settlement | 10 free quote + 20 payout = 30 paid to owner | 0 |
| Slot retirement | Paid claims clear; settled-position counter advances | 0 |
| Market closure | Requires all remaining liabilities and book checks to pass | Residual dust and rent only |
Terminal ask cleanup burns remaining escrow shares and credits their terminal payout to the owner.
It does not give the creator the original sale price or the shares' terminal value.
Previously paid ForceClose amounts are not paid again. Position mirrors are not additional collateral.
Anonymous wallet share supply remains a separate liability and can block closure.
Sources: mark_position_settled.rs (unavailable reference)
and reclaim_expired (unavailable reference).
Named fixtures include terminal_forfeit_releases_only_remaining_partial_bid_lock
and terminal_forfeit_burns_redeemable_remaining_partial_ask_and_credits_quote.
Runtime settlement tests (unavailable reference) include
exact_vault_settlement_retires_quote_and_both_internal_claims and unrelated_bearer_supply_is_not_burned_or_retired.
Creator and referral payments#
| State | Required next step | Expected result |
|---|---|---|
| Creator fees accrue during trading | Wait for terminal settlement | No early creator claim |
| Valid creator destination at settlement | Examine automatic payment | Creator receives fees; accumulator clears |
| Invalid creator destination at settlement | Repair destination, then claim | Deferred liability pays the fixed creator |
| Referral candidate in browser | Initialize referrer earnings, then referee signs SetReferrer | Confirmed immutable binding |
| Market-local referral fees pending | Run RollupReferralFees before terminal deadline | Bound earnings account becomes claimable |
| Rolled-up referral earnings | Referrer signs ClaimReferrerEarnings | Referrer receives settlement tokens |
Unrolled pending referral fees can become creator fees during post-grace position closure. This rule is separate from owner collateral and share entitlements.
Creator source: claim_creator_fees.rs (unavailable reference).
Creator claim tests (unavailable reference) include
test_claim_creator_fees_on_trading_market_rejected, test_claim_creator_fees_zero_accumulator_rejected, and test_deferred_fee_round_trip.
Referral setup is tested in apps/web/app/[locale]/referral/__tests__/ReferralContent.test.tsx
and packages/core/src/referral/__tests__/setReferrerWizard.test.ts.
Complete-set evidence#
Source: merge_complete_set.rs (unavailable reference).
Wallet-only runtime fixtures (unavailable reference) include
wallet_only_complete_set_merge_needs_no_position_or_ledger_slot.
Ledger runtime fixtures (unavailable reference) include
public_ledger_only_merge_exact_and_plus_three and public_mixed_wallet_and_ledger_merge_exact_and_plus_three.
These tests keep wallet holdings and ledger holdings separate and keep vault surplus unchanged.