Derivio
  • Introduction to Derivio
    • Use Cases
    • Architecture
    • Roadmap
  • Trading
    • Perpetual Futures
      • Universal Margin System
      • Funding Curve
      • Global Funding Rate
    • Prediction
      • Payout Curve
      • CFMM Rediscovery
    • Fees
  • Providing Liquidity
    • Super Derivatives Vaults
    • Market Neutral Liquidity
    • Interest Rates & Bonds
      • Use cases
  • Token Ecosystem
    • DRV Token
    • Derivio Whale NFT
  • Security
  • Developer Resources
    • Contracts
    • Keepers
  • Terms of Use
    • Privacy Policy
Powered by GitBook
On this page
  1. Trading
  2. Prediction

Payout Curve

It's all about fairness

Derivio uses a dynamic long-short ratio-based payout curve to ensure fairness between traders and balance the risk for the LPs. By recording the percentage of long positions at each block, this price discovery approach allows us to adjust the payouts more accurately according to the market condition.

On top of the basic long-short ratio calculation, we have put measures to mitigate the impacts of potentially harmful circumstances. The long-short percentage will be capped at 80%/20 % respectively, in order to prevent a sudden extreme jump in the long-short ratio at the beginning or when liquidity is low. This can also stop potential payout manipulation, effectively encouraging more balanced trading activity.

A regularization constant is introduced into long percentage calculation, aiming to adjust payout in a more reasonable way that faithfully reflects the market impact of users. This method works by introducing an initial fixed amount on both sides of the trade, which reduces the effect of outliers and creates a more stable payout structure.

For calculation we have:

(Time Weighted) Long OI=∑long positionsposition open interest position duration\textit{(Time Weighted) Long OI} = \sum_{\text{long positions}} \frac{\text{position open interest }}{\text{position duration} }(Time Weighted) Long OI=long positions∑​position durationposition open interest ​
(Time Weighted) Short OI=∑short positionsposition open interest position duration\textit{(Time Weighted) Short OI} = \sum_{\text{short positions}} \frac{\text{position open interest }}{\text{position duration} }(Time Weighted) Short OI=short positions∑​position durationposition open interest ​
\textit{(Real-time) Long %} = \frac{\text{Long OI} + \text{Reg const. } }{\text{Long OI + Short OI } + 2 * \text{Reg const. }}
Final long %=∫0settlemax⁡(Long %,20%)settlement period length dt=∑blocksmax⁡(Long %,20%)settlement period length\textit{Final long \%} = \int_0^{\text{settle}} \frac{ \max(\text{Long \%}, 20 \%)}{\text{settlement period length}} \text{ dt} = \sum_{blocks} \frac{ \max(\text{Long \%}, 20 \%)}{\text{settlement period length}}Final long %=∫0settle​settlement period lengthmax(Long %,20%)​ dt=blocks∑​settlement period lengthmax(Long %,20%)​
Final short %=∫0settlemax⁡(1 - Long %,20%)settlement period length dt=∑blocksmax⁡(1 - Long %,20%)settlement period length \textit{Final short \%} = \int_0^{\text{settle}} \frac{\max(\text{1 - Long \%}, 20 \%)}{\text{settlement period length}} \text{ dt} = \sum_{blocks} \frac{ \max(\text{1 - Long \%}, 20 \%)}{\text{settlement period length}}Final short %=∫0settle​settlement period lengthmax(1 - Long %,20%)​ dt=blocks∑​settlement period lengthmax(1 - Long %,20%)​
Final long payout=(1−cb)∗Final short %Final long %\textbf{Final long payout} = \frac{(1-c_b) * \textbf{Final short \%}}{\textbf{Final long \%}}Final long payout=Final long %(1−cb​)∗Final short %​
Final short payout=(1−cb)∗Final long %Final short %\textbf{Final short payout} = \frac{(1-c_b) * \textbf{Final long \%}}{\textbf{Final short \%}}Final short payout=Final short %(1−cb​)∗Final long %​

Where cbc_bcb​ is a balancing constant to control the long-short ratio between pools.

The real-time long/short payout on the page is calculated as follows:

Real-time long payout=(1−cb)∗max⁡(1 - Real-time Long %,20%)max⁡(Real-time Long %,20%)\textbf{Real-time long payout} = \frac{(1 - c_b) * \max(\text{1 - Real-time Long \%}, 20 \%)}{\max(\text{Real-time Long \%}, 20 \%)}Real-time long payout=max(Real-time Long %,20%)(1−cb​)∗max(1 - Real-time Long %,20%)​
Real-time short payout=(1−cb)∗max⁡(Real-time Long %,20%)max⁡(1 - Real-time Long %,20%)\textbf{Real-time short payout} = \frac{(1 - c_b) * \max(\text{Real-time Long \%}, 20 \%)}{\max(\text{1 - Real-time Long \%}, 20 \%)}Real-time short payout=max(1 - Real-time Long %,20%)(1−cb​)∗max(Real-time Long %,20%)​

Once a position is opened, traders can also directly monitor their projected payout, which is given by assuming that the current long-short ratio will be kept until the settlement time, and the result is in favor of the trader.

future long predictions=max⁡(Real-time Long %,20%)∗(settlement - nowsettlement)\textit{future long predictions} = \max(\text{Real-time Long \%}, 20 \%) * (\frac{\text{settlement - now}}{\text{settlement}})future long predictions=max(Real-time Long %,20%)∗(settlementsettlement - now​)
Projected long %=∫0nowmax⁡(Long %,20%)settlement dt +future long predictions\textbf{Projected long \%} = \int_0^{\text{now}} \frac{\max(\text{Long \%}, 20 \%)}{\text{settlement}} \text{ dt } + \textit{future long predictions}Projected long %=∫0now​settlementmax(Long %,20%)​ dt +future long predictions

And similar for shorts, by replacing Long% by 1 - Long% in the formula, respectively.

Projected long payout=(1−cb)∗Projected short %Projected long %\textbf{Projected long payout} = \frac{(1 - c_b) * \textbf{Projected short \%}}{\textbf{Projected long \%}}Projected long payout=Projected long %(1−cb​)∗Projected short %​

And similar for shorts, by replacing Long% by 1 - Long% in the formula respectively.

Current Parameters

Paramater
Value

$21,600/hr

Fee

3%

12% for ETH, BTC; 9.28% for all other markets

Keeper

3% (if pool wins)

PreviousPredictionNextCFMM Rediscovery

Last updated 7 months ago

Plot:

Reg. constReg.\ constReg. const
cbc_bcb​
https://www.desmos.com/calculator/n04e26gtjg
Vanilla Static LSR - Profit Curve