docs
Concepts
How Scoring Works

How Scoring Works

SentiDex uses LMSR (Logarithmic Market Scoring Rule) to price attention positions. LMSR is a well-studied automated market maker used in prediction markets for its efficiency and incentive properties.

LMSR basics

In an LMSR market, each outcome ii has a quantity qiq_i representing shares outstanding. The cost function is:

C(q)=bln ⁣(ieqi/b)C(\mathbf{q}) = b \cdot \ln\!\left(\sum_{i} e^{q_i / b}\right)

where bb is the liquidity parameter — a higher bb means deeper liquidity and lower price impact per trade.

The implied price (attention share) of position ii is:

pi=eqi/bjeqj/bp_i = \frac{e^{q_i / b}}{\displaystyle\sum_{j} e^{q_j / b}}

Prices always sum to 1 across all positions (including the reserve):

ipi=1\sum_{i} p_i = 1

What prices mean

A position price of pi=0.35p_i = 0.35 means the market implies 35% of attention is flowing to category ii. This is not a binary event probability — it is a continuous measure of relative attention allocation.

Priors

When a market is initialised, each position receives a prior rir_i — a starting weight expressed in basis points that sets the baseline before any trades occur. Priors must satisfy:

iri+rreserve=10,000 bps\sum_{i} r_i + r_{\text{reserve}} = 10{,}000 \text{ bps}

The initial quantity vector is derived from the priors so that pi(0)=ri/10,000p_i(0) = r_i / 10{,}000.

Example — "What is Crypto For?" initialisation:

PositionPrior (bps)Starting pip_i
MONY141514.15%
DEFI141314.13%
TOKN106010.60%
STBL8488.48%
INFR7077.07%
SOVR4234.23%
PMK6006.00%
SDEX4004.00%
Reserve200020.00%

Trading mechanics

When you buy shares of position ii, the market moves from quantity vector q\mathbf{q} to q\mathbf{q}' where qi>qiq_i' > q_i and all other quantities are unchanged.

The cost of any trade is path-independent:

cost=C(q)C(q)\text{cost} = C(\mathbf{q}') - C(\mathbf{q})

Expanding for a single-position buy of Δ\Delta shares in position ii:

cost=bln ⁣(jeqj/b+(eΔ/b1)eqi/bjeqj/b)\text{cost} = b \cdot \ln\!\left(\frac{\displaystyle\sum_{j} e^{q_j/b} + (e^{\Delta/b} - 1)\,e^{q_i/b}}{\displaystyle\sum_{j} e^{q_j/b}}\right)

For a sell of Δ\Delta shares the same formula applies with Δ<0\Delta < 0, yielding a negative cost (i.e. a credit to the seller).

Price impact

The marginal price impact of buying Δ\Delta shares of position ii increases with Δ\Delta and decreases with bb. For small trades relative to bb, the price moves approximately:

ΔpiΔbpi(1pi)\Delta p_i \approx \frac{\Delta}{b} \cdot p_i (1 - p_i)

This means price impact is largest when pi=0.5p_i = 0.5 and smallest at the extremes — a useful property for thinly-held positions.

Settlement

💡

Settlement mechanics are being finalised. This section will be updated when the settlement spec is published.

At market close, the SentiDex attention index determines the winning allocation. If the realised attention share of position ii is p^i\hat{p}_i, then each share of position ii pays out:

payout per share=p^itotal pooltotal sharesi\text{payout per share} = \hat{p}_i \cdot \frac{\text{total pool}}{\text{total shares}_i}