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 positions∑position durationposition open interest
(Time Weighted) Short OI=short positions∑position durationposition open interest
Final long %=∫0settlesettlement period lengthmax(Long %,20%) dt=blocks∑settlement period lengthmax(Long %,20%)
Final short %=∫0settlesettlement period lengthmax(1 - Long %,20%) dt=blocks∑settlement period lengthmax(1 - Long %,20%)
Final long payout=Final long %(1−cb)∗Final short %
Final short payout=Final short %(1−cb)∗Final long %
Where cb 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=max(Real-time Long %,20%)(1−cb)∗max(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%)∗(settlementsettlement - now)
Projected long %=∫0nowsettlementmax(Long %,20%) dt +future long predictions
And similar for shorts, by replacing Long% by 1 - Long% in the formula, respectively.
Projected long payout=Projected long %(1−cb)∗Projected short %
And similar for shorts, by replacing Long% by 1 - Long% in the formula respectively.