CAMM Math
This section contains lots of math.
Pron Initialization and Price Peg
Let us define, for any Pron having
where
Liquidity Provisioning
After the initialization, LPs can add liquidity to increase the depth of the price which could help to increase the volume. Let us say a LP wants to add
where quantity of each outcome tokens to be minted is
with new reserve values can be updated with
Trading Mechanics - Buy Operation
At any given state, let total stables at liquidity reserve be
which then leads to
The new pool states can be updated as
Thus total stables at liquidity reserve be
Trading Mechanics - Sell Operation
Let us say, a trader wants to sell
then for tokens in and stables out swap trading is calculated as
Since CAMM need to incentivizes prediction rather than pump and dump like regular meme tokens. The sell operation need to tackle the following issues. 1. Sniping at Low Price after initialization. 2. Profit taking by draining the liquidity pool 3. Rekking the community by removing the full liqudity. 4. A rewards pool that incentivicing holder for predicting the outcome.
Note that it is straight forward to introduce a levy on sells to reward long-term belief holders. Let
Depending on implementation,
Hence CAMM introduces new mechanism of Rewards Reserve Fee (RRF) ensures profit redistribution and goes directly to rewards pool. RRF is sum of portion of realized profit (
where
where
Reward Distribution at Finality
Let the state
All losing outcome tokens
Note that
For each holder
where
where
Consensus Probability
As the traders trading the outcome tokens with CAMM, the supplied tokens of outcomes reflects the expectation behaviour of the outcome for that event and which results in the probability. Since all outcome pools share the same stable denomination, crowd allocation of belief can be automatically reflected via outcome token accumulation quantities in supply. This does not require onchain calculations, as it is reflected only in user interface. The crowd wisdom probability signal of the outcome
This reflects relative conviction weights expressed by cumulative token holdings.