GMX Settlement Logic

Logic

⎊ GMX Settlement Logic encompasses the specific on-chain code that governs the final calculation and distribution of realized profit or loss for perpetual swap contracts. This deterministic logic processes the final index price against the trader’s open position to determine the net funding exchange. Precision in this code is essential for maintaining the integrity of the decentralized exchange.