# Fee Architecture

Every fee PAX charges, exactly where it's captured, exactly where it goes. No hand-waving — ledger event types, bps values, and payout mechanics for auditors, builders, and VC due-diligence.

**For traders — 60-second version:** When you trade, you pay a taker fee between **0.08% and 0.20%** of notional (peaks near 50/50 markets, drops at extremes because uninformed edge is smaller). Market makers who post resting limit orders **get paid** — a rebate of 5–20% of the taker fee each of their fills generated, at a tier set daily from their 30-day share of maker volume. Every trade splits automatically into 7 buckets — the acquisition and execution builder (0 bps: builders earn only the builder fee they set), market creator (3 bps), the per-market MM stipend pool (5 bps), LP holders (2 bps), and platform (10 bps; the operator share is 0 while PAX is the only operator). A builder can also charge its own [builder fee](https://docs.predictasiax.com/fee-architecture#builder-fee) on the orders it places for other accounts, paid in full to the builder. No spread markups, no hidden fees, no monthly subscription. Every bps flows to a typed `financial_event` row on the ledger — you can independently verify at [/verify](https://docs.predictasiax.com/verify), and live per-market config is queryable at [the public LQF API](https://docs.predictasiax.com/fee-architecture#public-api).

**Design principle:** a single revenue lever: the per-trade fee. Every taken bps is recorded as a typed `financial_event` row on the platform ledger. No off-ledger revenue. Public Merkle verifier at [/verify](https://docs.predictasiax.com/verify) proves inclusion of any settlement event.

## One fee, one ledger

| Product | Fee model | Charged when | Ledger event |
|---|---|---|---|
| **Trading** (limit + market orders) | PAX Adaptive Fee Curve (PAF): 8-20 bps effective taker (peak at 50/50 = PAF_BASE=20; floor 8 bps at extremes; 25 bps ceiling is a dormant configurable cap) · maker rebate 5–20% of the taker fee (30-day volume-share tier) · 7-actor split | At fill | `FEE_ACQUISITION_BUILDER` · `FEE_EXECUTION_BUILDER` · `FEE_OPERATOR` · `FEE_MARKET_CREATOR` · `FEE_MM_STIPEND` · `FEE_LP` · `FEE_PLATFORM_NET` |
| **Builder fee** (optional, set by the builder) | 0-100 bps taker / 0-50 bps maker on notional, only on orders a builder places for an account that approved it; paid in full to the builder ([details](https://docs.predictasiax.com/fee-architecture#builder-fee)) | At fill | `CLOB_BUILDER_FEE` · `CLOB_BUILDER_FEE_CREDIT` |

TRADING

### Layer 1 — Adaptive taker fee (PAF)

**PAX Adaptive Fee Curve (PAF).** Instead of a flat rate, taker fee scales with information asymmetry: at max uncertainty (50/50) the fee peaks; at settled-outcome extremes (near 0¢ / 100¢) the fee floors. This aligns cost with informed-trader edge without giving away free trades on stale prices.

**Formula:** `raw_bps = PAF_BASE × 4 × price × (1 - price)`, clamped to `[PAF_FLOOR, PAF_CEILING]`. Because `4·p·(1−p)` peaks at 1 when `p = 0.5`, the raw curve maxes out at `PAF_BASE_BPS`. With default constants, the effective per-fill taker fee is **8–20 bps**; the ceiling is a configurable safety cap that is dormant unless PAF_BASE is raised above 20.

- `PAF_BASE_BPS = 20` — center peak at 50/50 (mathematical max of the raw curve)
- `PAF_FLOOR_BPS = 8` — extreme-price floor (sustains revenue on directional flow near 0¢ / 100¢)
- `PAF_CEILING_BPS = 25` — configurable safety cap; not reached with default PAF_BASE=20 (only active if PAF_BASE is raised in a future tuning)

| Price | Raw curve | Effective (after clamp) |
|---|---|---|
| 0.50 | 20.00 bps | **20 bps** |
| 0.70 | 16.80 bps | **16.80 bps** |
| 0.90 | 7.20 bps | **8 bps** (floor) |
| 0.99 | 0.79 bps | **8 bps** (floor) |

**Maker rebate:** a percentage of the taker fee of every fill the maker's resting order provided, paid to the maker's balance with the fill. The percentage is the maker's tier, set daily from its 30-day share of all weighted maker volume: under 0.1% → 5%, 0.1% → 8%, 0.5% → 12%, 1.5% → 16%, 3% and above → 20%. Weighted volume is `size × price × 4p(1−p)`. The rebate is carved out of that fill's `mm_stipend_pool` share, so it never comes out of another actor's share. Self-trades and trades between accounts of the same owner earn none. Accounts that an automatic daily check links to each other — through shared funding, devices or referrals, or because they trade mainly against each other — earn no maker rebate, no share of the stipend pool and no PAX reward while they stay linked. The restriction lifts by itself once two consecutive daily checks no longer find the link. Until then the most strongly linked accounts stay restricted, and their PAX rewards that are still locked are forfeited. Enrollment is automatic (`POST /v1/mm/apply`); there is no review, agreement or whitelist.

**Reservation.** A BUY order reserves `price × size` plus the fee at `PAF_CEILING_BPS` (25 bps), plus the order's builder fee rate if it carries one, while it is open. Each fill charges the fee at that fill's price and releases the rest of its reservation; cancelling releases what is left. Your free balance must cover the reservation, so an order funded for exactly the expected fee is rejected with `insufficient_balance`. A SELL reserves the shares it sells.

**Fills between two buyers.** When your buy of one outcome is filled against another trader's buy of the opposite outcome, the pair is created for both of you and the two of you split one taker fee: each side pays half the fee for that fill. `GET /v1/markets/{id}/quote` prices each fill the way it will be charged, so the same amount can quote a lower fee on one outcome than on the other; `POST /v1/fees/estimate` shows the full fee of one fill.

The fee curve and the 7-way split read the same base parameter, and the platform refuses to start if the two ever disagree.

#### Progressive tier — 7-actor split (shares of the effective clamped fee)

The bps figures below are defined at the PAF centre (effective fee = 20 bps at 50/50). For any given fill, each actor's absolute allocation is `share_bps × (effective_bps / PAF_BASE_BPS)` — so at the 8 bps floor, each bucket is scaled by `8/20 = 0.4`. The sum of allocations always equals the effective per-fill fee — no bucket is subsidised. Call `POST /v1/fees/estimate` for the authoritative per-bucket bps of any given trade.

| Tier group | acq | exec | op | mc | mm_stipend | lp | plat_net | Total @ centre |
|---|---|---|---|---|---|---|---|---|
| Every tier | 0 | 0 | 0 | 3 | **5** | 2 | 10 | 20 bps |

**Builder share:** 0 at every tier since 2026-11-28. Builders earn only the add-on [builder fee](https://docs.predictasiax.com/fee-architecture#builder-fee) they set themselves; the 3 bps that went to the acquisition and execution builders now go to `platform_net`. The acquisition and execution builder are still recorded on every fill (`acquisition_builder_id`, `execution_builder_id`) and count toward builder points and tier graduation.

**Operator (`op`):** 0 bps. PAX is the only operator, so its share is carried in `platform_net`; the bucket is kept for third-party operators.

**New bucket:** `mm_stipend_pool` — 5 bps at PAF centre (scaled by effective fee at extremes) accrues to per-market MM reward pools, distributed daily to registered MMs via the LQF quality score (see below). Replaces the old flat 2 bps maker rebate with a quality-weighted, pool-based payout that better rewards tight-spread, two-sided, long-uptime market making.

**Unfilled roles:** if `acquisition_builder_id` or `market_creator_id` is null on a trade, that bucket's share flows to `platform_net`. Every trade's PAF fee is always fully allocated across the 7 actors and the sum equals the effective per-fill taker fee — verifiable via `Σ financial_event.amount_usdt = fill.taker_fee_usdt` per `trade_id`.

TRADING

### Builder fee — a builder's own rate

A builder can add its own fee to the orders it places for another account (a user who connected its app, or an account that made it a trading agent). It is charged per fill on notional, on top of the platform fee above, and paid in full by that account to the builder in the same step that fills the order. It is not part of the taker fee and the 7-actor split never sees it.

- Rate set by the builder: taker 0-100 bps, maker 0-50 bps. Public at `GET /v1/builders/{builder_id}/fee`.
- Changes take effect 3 days after they are set, at most one change every 7 days, one pending at a time.
- Charged only to an account that approved a maximum rate for that builder (`POST /v1/builder-fee-approvals`, at most 10 live, revocable at any time). An order above the approval is refused, never repriced.
- Never charged on the builder's own account or its subaccount slots. Rounded down to 0.000001 USDT per fill, and never more than the paying account's available balance at that fill.

Details and endpoints: [Builders, Builder fee](https://docs.predictasiax.com/builders#builder-fee).

LP

### Layer 2 — LP holder distribution

**Source:** the `FEE_LP` events written on every fill (2 bps at the PAF centre at every tier, scaled with the effective fee like every other bucket). Accumulates on the ledger in the `pool:lp` account. See the 7-actor table in Layer 1.

**Distribution:** an hourly job:

1. Totals the unsettled `FEE_LP` events.
2. Reads the active LP positions.
3. Distributes pro-rata by LP shares.
4. Credits each LP and writes an audit record.
5. Marks the source `FEE_LP` events settled with the distribution ID.

A distribution below $0.10 waits for the next run. If there are no active LP positions, that period's LP fees stay with the platform.

#### Liquidity Quality Framework (LQF) — 3-layer MM scoring

PAX rewards market makers on **quality**, not just volume. Every 60 s, an autonomous snapshot cron scores every resting MM quote across four dimensions; every 24 h, each market's `mm_stipend_pool` pays out pro-rata to top scorers. Snapshotting is fully independent of quote-post events — MMs cannot game the score by posting-and-cancelling.

##### 3-layer score

```
// Layer 1 — Proximity (quadratic decay from filtered fair price)
proximity(order) = max(0, 1 - |price - filtered_fair_price| / max_qualifying_spread)²

// Layer 2 — Depth (proximity-weighted resting size per side)
depth_side(s) = Σ size_i × proximity(order_i)
q_bid = depth_side(YES-BID) + depth_side(NO-ASK)
q_ask = depth_side(YES-ASK) + depth_side(NO-BID)

// Layer 3 — Balance (two-sided requirement, harsher at extremes)
if filtered_fair_price ∈ [0.10, 0.90]:
    balance_quality = max(min(q_bid, q_ask),
                          max(q_bid, q_ask) / single_sided_penalty_ratio)
else:
    balance_quality = min(q_bid, q_ask)   // extreme prices require both sides

// Layer 4 — Continuity (time in book / snapshots seen)
continuity(u) = snapshots_present / snapshots_expected

// Final
market_score(u, m)  = balance_quality × continuity
user_share(u, m)    = market_score(u, m) / Σ market_score(*, m)
payout(u, m, epoch) = user_share × market_liquidity_stipend(m, epoch)
```

Per-market parameters: maximum qualifying spread (default 500 bps = 5¢), depth floor (default $5,000), single-sided penalty ratio (default 3.0) and the daily stipend. Each market's live values are public at `GET /v1/lqf/config/:market_id`.

The daily stipend is a cap. A day pays out at most the smaller of `daily_stipend_usdt` and the market's pool balance, and the pool fills only from that market's own taker fees. `GET /v1/lqf/config` returns both for every market: `pool_balance_usdt` and `payable_today_usdt`.

##### Filtered fair price (dust-resistant)

Instead of naive mid-of-best-bid-ask, LQF computes fair price only over quotes with notional ≥ `DUST_MIN_USDT` (default $10). This prevents 1-share dust orders from moving the reference and thereby manipulating everyone else's proximity score.

##### Snapshot & payout schedule

- **60 s** — a proximity-weighted liquidity-quality snapshot is recorded for each quoting account.
- **5 min** — `FEE_MM_STIPEND` events are swept into each market's stipend pool.
- **24 h (00:15 UTC)** — each account's share × the pool is credited to its balance and recorded as an `LQF_STIPEND` ledger event, at most once per account, market and day.

##### Reading your score

Real-time forecast per MM: `GET /v1/mm/stipend/estimate?market_id=…`. Historical: `GET /v1/mm/stipend/history?from=…&to=…`. Raw inventory + risk limits stay at `GET /v1/mm/me/inventory` and `GET /v1/mm/me/risk-limits`.

#### PAX quote reward

On top of the USDT stipend, **10,000,000 PAX over 180 days** go to makers who keep two-sided quotes resting on the order book. There is nothing to apply for: any account with resting orders in a program market takes part, and an open market joins the program by itself within about 10 minutes of an order resting in it (fast rounds excepted).

- **Daily budget** — at most 10,000,000 / 180 ≈ 55,556 PAX a day. How much of it a day releases depends on trading between different owners: `E = 2,000 + (55,556 − 2,000) × min(1, V / 1,000,000)`, where V is the day's fill notional weighted by 4p(1−p) between accounts of different owners. Quoting alone releases the 2,000 PAX floor.
- **Market pools** — each market quoted that day gets `E × w / Σw`, at most 10% of E, where `w = (1 + √V7) × boost`, V7 is the market's 7-day weighted fill notional, and a new market's boost starts at 3× and fades to 1× over its first 72 hours. What the cap holds back is not paid out.
- **Your share** — your LQF market score in that market, counted only for the samples in which your quotes are on both sides and add up to at least 500 USDT.
- **Limits** — one owner (an account and its subaccounts) earns at most 15% of E a day across all markets. Rewards under 1 PAX are not paid.
- **Payment** — each UTC day is computed after 00:30 UTC the next day. Rewards stay locked for 7 days and are then credited to your platform PAX balance, while the PAX distribution wallet covers them together with every PAX balance already on the platform; until it does, they stay locked. Linked accounts (see the maker rebate above) forfeit rewards that are still locked.
- **Duration** — 180 days from the first rewarded day, or until 10,000,000 PAX are committed.

`GET /v1/lqf/pax` (no key) shows the program's parameters and state, the last rewarded day, and for every open market in the program the pool it would get today if quoted: `est_pool_pax_min` at the 2,000 PAX floor and `est_pool_pax_max` at the full daily budget, given the markets quoted so far today. It is refreshed every minute.

`GET /v1/lqf/pax/leaderboard` (no key) lists the PAX each trader earned in the seven UTC days before today: the top 25 by public name, with how many markets and days it came from. It is refreshed every minute. Signed in at predictasiax.com, [Maker rewards](https://predictasiax.com/maker-rewards) shows your own rewards: earned, locked, paid, the next unlock, and each day and market.

Each market in `GET /v1/lqf/pax` also carries `makers_today`: how many accounts have met the two-sided 500 USDT condition in that market so far today (`null` if it could not be read). Where it is 0, the first maker to qualify has the market's pool to themselves, within the limits above.

#### PAX buyback

While the buyback is `active`, a share of the platform's trading fee revenue buys PAX in the PAX/USDT pool on Polygon (`0x99799C89a386C728FCcd6a8A1d1418717049da9A`). The USDT paid stays in the pool as the bid for anyone selling PAX. Each closed UTC day sets aside its share; purchases are made in steps of at most 5,000 USDT, 20,000 USDT a day, with a 1% price limit, and each one is a public Polygon transaction.

`GET /v1/pax/buyback` (no key) shows the `status` (`not_started`, `active` or `paused`), the USDT set aside, spent and still waiting, the PAX bought, the most recent purchases with their transaction hashes, the pool's USDT and PAX read from the chain, and what PAX is used for on the platform (fee payment discount, holder tier fee discount, new-trader cashback). It is refreshed every minute.

#### LQF v2 — 4 upgrades (2026-09-24)

Four capability upgrades ship on top of the LQF v1 above. All default **off** and are enabled one by one, so v1 behavior is preserved until each is deliberately enabled.

##### ① Per-market boost

A market can be given a boost multiplier (1.0 by default, range 0.1–10.0) that scales qualifying size in that market's score. It subsidises a market without changing its daily stipend pool, which accrues from taker fees only. Every change is audited and its reason is kept.

##### ② Rolling 1-hour uptime enforcement

A market can require a minimum hourly uptime (regulated venues typically use 98%). An hour only counts if the account was present in at least 45 of its ~60 snapshots; if the account\'s uptime for the epoch falls below the market\'s threshold, its continuity for that epoch is zero. This closes the gap where an MM quoting 33% of the day (8 h) still collected from every hour.

##### ③ One program for every market maker

There is no Market Maker Agreement, whitelist or separate weekly pool. Every maker is enrolled with `POST /v1/mm/apply` (approved on submit) and earns from the same two sources: the per-fill maker rebate above and its share of each market's daily stipend pool. `GET /v1/lqf/mma-tier` is kept for compatibility and returns an empty list.

##### ④ Public LQF disclosure API

Six no-auth endpoints let any trader / MM / auditor query the current LQF state without an API key:

| Endpoint | Returns |
|---|---|
| `GET /v1/lqf/config` | List all active LQF markets (paginated, ordered by daily_stipend_usdt desc), each with `pool_balance_usdt` and `payable_today_usdt` |
| `GET /v1/lqf/config/:market_id` | Full per-market config + formulas + reference URL |
| `GET /v1/lqf/pool/:market_id` | Current pool balance (accumulated_usdt / distributed_usdt / balance_usdt) + last epoch payout |
| `GET /v1/lqf/leaderboard?days=7` | Top 50 MMs by past-week payout across all markets, each named by its public name (`trader`) |
| `GET /v1/lqf/pax` | The [PAX quote reward](https://docs.predictasiax.com/fee-architecture#pax-quote-reward): parameters, state, last rewarded day, and today's estimated pool per market |
| `GET /v1/lqf/pax/leaderboard` | PAX quote rewards per trader over the seven UTC days before today, by public name |
| `GET /v1/pax/buyback` | The [PAX buyback](https://docs.predictasiax.com/fee-architecture#pax-buyback): status, USDT set aside and spent, PAX bought, recent transactions, and the pool on chain |
| `GET /v1/lqf/mma-tier` | Kept for compatibility; returns an empty list (there are no MM agreements) |

In an emergency the endpoints can be switched off (they then return 503). Design principle: MMs deserve to see the rules they're competing under BEFORE committing capital.

## Payout flow — from ledger to wallet

##### 1. Trade fill

The trader's balance is debited and the fee is booked to `platform:net` on the ledger.

##### 2. Fee split

Every 30 s the fee split is written to the ledger as typed events.

##### 3. Accrual

Events sit unsettled (`settled_at IS NULL`) until claimed. An event can be claimed 72 hours after it is booked (reserve window); a claim takes only those. Per-actor sums queryable via `/v1/attribution/fills` and `/v1/revenue`.

##### 4. Claim

Builder: `POST /v1/builders/me/settle` (self-serve) or `POST /v1/admin/builders/:id/settle`. Creator: `POST /v1/admin/creators/:id/settle`. LP holders: automatic hourly cron.

##### 5. Withdrawal

Settle endpoint creates a `withdrawal_state` row with `source='builder_earnings'` / `'creator_earnings'`. Existing withdrawal pipeline delivers USDT to the wallet address.

## financial_event taxonomy

| event_type | Debit account | Credit account | Source | Notes |
|---|---|---|---|---|
| `FEE_ACQUISITION_BUILDER` | `platform:hold` | `builder_acq:<user_id>` | Fee split | 0 bps since 2026-11-28; no event is written while the share is 0 |
| `FEE_EXECUTION_BUILDER` | `platform:hold` | `builder_exec:<user_id>` | Fee split | 0 bps since 2026-11-28; no event is written while the share is 0 |
| `FEE_OPERATOR` | `platform:hold` | `operator:<user_id>` | Fee split | 0 bps (PAX is the only operator; its share is in `FEE_PLATFORM_NET`) |
| `FEE_MARKET_CREATOR` | `platform:hold` | `creator:<user_id>` | Fee split | 3 bps |
| `FEE_MM_STIPEND` | `platform:hold` | `pool:mm_stipend:<market_id>` | Fee split | 5 bps; distributed daily by LQF quality score |
| `FEE_LP` | `platform:hold` | `pool:lp` | Fee split | 2 bps; distributed hourly |
| `FEE_PLATFORM_NET` | `platform:hold` | `platform:net` | Fee split | 10 bps + absorbed unfilled attribution |
| `LQF_STIPEND` | `pool:mm_stipend:<market_id>` | `user:<user_id>` | Daily stipend run (00:15 UTC) | Pro-rata payout of the market's daily pool by user_share = market_score / Σ market_score |
| `CLOB_BUILDER_FEE` | `user:<payer>` | `builder_fee:<builder_id>` | Builder fee, at fill | The paying account's builder fee for one fill (taker or maker rate) |
| `CLOB_BUILDER_FEE_CREDIT` | `builder_fee:<builder_id>` | `user:<builder_id>` | Builder fee, at fill | Same amount to the builder's balance; the clearing account nets to zero |

## Independent verification

Every `financial_event` row is hash-chained into the operational audit log and Merkle-batched. The public Merkle verifier at [/verify](https://docs.predictasiax.com/verify) exposes six no-auth endpoints (`/v1/audit/status`, `/batches/latest`, `/batches/{num}`, `/events/{seq}`, `/proof/{seq}`, `/anchor/{num}`) so any third party can independently confirm that a specific fee event was recorded and included in a signed, R2-anchored batch — no PAX cooperation required.

## References

- [REST API reference](https://docs.predictasiax.com/openapi) — full schema for `/v1/fees/estimate`, `/v1/attribution/*`, `/v1/revenue/*`, `/v1/builders/me/settle`, `/v1/admin/{builders,creators}/:id/settle`
- [Builders program](https://docs.predictasiax.com/builders) — tier definitions, application flow, auto-graduation
- [Public Merkle verifier](https://docs.predictasiax.com/verify) — interactive proof reconstruction + 4-language snippets
- [Changelog](https://docs.predictasiax.com/changelog) — historical fee model changes with rationale

Source: https://docs.predictasiax.com/fee-architecture
