New contract pairs will be added in time, and an open market creation tool is being proposed for development. Join our Discord to discuss if you have ideas or suggestions!
Perpetual Protocol follows FTX's method to calculate the funding payments. It is calculated as shown below:
The 1 hour TWAP of the Mark Price.
The 1 hour TWAP of the Index Price. (from oracle)
The funding payment is calculated every hour for all long and short positions. If the fundingPayment is positive, every long position holder has to pay short position holders the funding payment, and vice versa if the fundingPayment is negative. This incentivizes traders to drive the mark price toward the index price.
Once traders' marginRatio falls below the marginRequirementRatio threshold (currently 6.25%, equivalent to 16x leverage - this could be updated by governance), Keepers can liquidate the collateral and earn fees.
The marginRatio is calculated as:
When positions are liquidated, keepers get 1.25% (could be updated by governance) of the positionNotional as liquidation fees. The remaining margin is deposited into the Insurance Fund.
If the collateral is not enough to pay for the liquidation fees, funds are withdrawn from the Insurance Fund to make up the difference.