Fair Price Marking
Mark price is the fair price of a perpetual contract. Mark price is calculated using the liquidity in the perpetual market order book and the index price (spot price of the underlying market). At any point in time, mark price is defined as follows:
Lighter uses a combination of oracles to determine the index price, with Stork as our primary oracle provider. Stork is a decentralized oracle network designed to offer secure, reliable, and timely price feeds.
Note: because the mark price is used when deciding if liquidations should be happening, the mark price should reflect as much as possible the impact price, so that the execution of liquidations should happen close to mark price. Because of this, we chose to incorporate the impact price directly in the mark price formula. Price 1 can be summarised as Index Price + Lighter Perpetual Premium, where the premium is capped at 0.5% of the Index Price. The usage of the EMA makes it so if someone tries to manipulate the order book, they'd need to do so for a prolonged period of time. The cap of 0.5% ensures that the mark price on Lighter will not be bigger than the other external components by more than 0.5%. In summary, the EMA component should yield better results than just using the funding rate due to the shorter time span, while also being resilient to manipulation.
Last updated