Funding Rate
Concept of ABEx funding rate is to protect the interests of ALP holders, and dynamically adjust the funding rate for a specific direction of a trading pair. When traders for a given trading pair are overall profitable, fees are collected from traders and subsidized to LPs. When traders are overall at a loss, fees are collected from LPs and subsidized to traders. This ensures that each trading pair's unrealized + realized PNL approaches 0 statistically over the long term, with LPs having no excess returns but only fee income (transcation fee + borrowing interest). And here are the steps of detailed dynamic funding fees that are calculated.
Calculate the total profit and loss of LP at time t on the the trading pair
The rebalancing method for the funding rate at time t is
The reason for using the logarithm of pnl is to make the funding rate change significantly when pnl is small and change slowly when pnl is large
The funding rate has upper and lower bounds, with corresponding upper and lower rate limits R1, R2 when pnl < 0 and pnl > 0, respectively
If a trader opens a position at time t1 and closes it at time t2, with a position size of size, the funding fee to be paid/received by the trader is
When the fee is positive, it represents the trader paying the funding fee to the LP
When the fee is negative, it represents the LP paying the funding fee to the trader
Last updated