CFMM Rediscovery

Coincidence?

If we view the Derivio's aforementioned model in another way, by denoting the final long payout as x, the final short payout as y, and rearranging our formula, we would have:

xy=Final Short %Final Long %×cprofit×Final Long %Final Short %×cprofit=cprofit2x*y = \frac{\text{Final Short \%}}{\text{Final Long \%}} \times c_{profit} \times \frac{\text{Final Long \%}}{\text{Final Short \%}} \times c_{profit} = c_{profit}^2

Surprisingly, this is a constant-function market maker (CFMM) hidden behind the scene! Notice that k=cprofit2k = c_{profit}^2 which is a constant.

A CFMM is a market maker with the property that the amount of any asset held in its inventory is completely described by a well-defined function of the amounts of the other assets in its inventory. Its variants are commonly used as a price discovery tool in numerous on-chain exchange models. By giving traders the right to move the price on the curve through trading activities, the model could guarantee instant liquidity without distorting the price feed.

The regularization constant cregc_{reg}, can be thought of as the initial liquidity added to both sides of the CFMM curve. When creg=0c_{reg} = 0, the pool has no liquidity, meaning any open orders can push the price to either 0 or infinity. By introducing cregc_{reg}, the pool can provide some liquidity into thexy=cprofit2xy = c_{profit}^2 model at a fair price of 0.5, to be adjusted by traders. Similar to the vanilla CFMM model, the higher the value of cregc_{reg}, the less market impact traders will have.

Long OI=Long OI+creg\text{Long OI} = \text{Long OI} + c_{reg}

Short OI=Short OI+creg\text{Short OI} = \text{Short OI} + c_{reg}

The long-short ratio floor value cfloorc_{floor} is depicted in the figure above as the flattened section of the CFMM curve beyond the green normal range. As you can see, the curve deviates from the hyperbola and becomes linear beyond the green ranges, and the impact of trader is thus slightly reduced. By capping the payout curve within reasonable ranges, traders are able to determine the fair pricing of options without any unexpected fluctuations.

Ultimately, the integral / Riemann sum, representing the Time-Weighted Average Payout discovered over the entire trading period in the CFMM model, mitigates any adverse impact on user experience from rapid fluctuations. This ensures a fair execution environment for all traders, and could also reduce the harm of any potential oracle manipulation events.

Last updated