Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

gmx


tl; dr


  • gmx is a decentralized spot and perpetual futures exchange built on arbitrum and avalanche chains. it exploded after the ftx fall, and just this week it seems to have become the top defi project on fee profit, and one of the top projects by fee and revenue in defillama. they are winning by offering perks such as no slippage, low swap fees, and zero price impact trades (i.e., large trades are set at the mark price).

  • gmx offers zero slippage on trades via an oracle price update system (chainlink + aggregate of prices from leading volume exchanges), while amms rely on arb bots to balance prices in the pools.

  • gmx’s swap trades are performed based on a combination of two oracles:

    • the primary oracle is fed by chainlink, and it takes the last three samples (picking the worst price for the user).
    • the secondary oracle is the “fast price feed”, which overrides the price whenever it is within 2.5% of the primary oracle price value.
  • gmx enables traders to open up to 50x leverage swaps for long or short positions by borrowing from glp, a multi-asset pool containing $btc, $eth, $uni, $link, and stablecoins. the vault allows swapping of the tokens it holds. funds are deposited into the vault by minting glp tokens and can be withdrawn by burning these tokens. glp works as the counterparty in the protocol, as it accrues values when traders loses, and devalues when traders win. glp is also emerging as a form of collateral, with lending protocols integrating this liquidity provider token into their product offerings (e.g., rage, unami, sentiment).

  • gmx’s native token, $gmx, functions as a governance, utility, and value-accrual token. glp accrues 70% of all trading fees, while stakers of gmx earn 30%. a floor price fund helps ensure liquidity in the glp pool, plus a reliable stream of $eth rewards for $gmx stakers.

  • the protocol's revenues come from swap fees, trading fees, execution fees, liquidation fees, and borrow fees.



in this dir




resources