βš–οΈThe f(x) Invariant

The magic behind non-liquidatable leverage

The f(x) Invariant is the core mechanism behind both V1 and V2. It enables non-liquidatable leverage while delivering 100% capital efficiency for the stablecoins. f(x) Protocol ensures that the total value of all fxUSD combined with the total value of all xPOSITIONs is always equal to the total value of the collateral reserves. Dynamic adjustments to the leverage ratio of xPOSITION and the peg ratio of fxUSD enable seamless collaboration between low-volatility stablecoins and high-leverage trading tools.

The relationship is represented as:

Where:

𝑛 is the number of TOKEN collateral,

𝑠 is the TOKEN price in USD,

​nf is the number of fxUSD,

𝑓 is the fxUSD NAV in USD,

nx is the number of xPOSITION units, and

π‘₯ represents the NAV of xPOSITION in USD.

This formula ensures that the system remains balanced, maintaining integrity and stability across its decentralized financial tools.

Last updated