Mettalex DEX
The Mettalex Decentralised Exchange (DEX) consists of several distinct layers:
- liquidity provision - this makes use of audited contracts from the yearn ecosystem
- decentralised exchange - this makes use of audited contracts from the Balancer ecosystem together with a Mettalex Pool Controller acting as a smart pool
- Mettalex vault - this stores the collateral acting backing the position tokens
The Mettalex vault allows traders and market makers to mint pairs of long and short position tokens by locking collateral. It also allows redemption of a long and short pair for the underlying collateral.
The on-chain market maker allows traders to enter/exit a single-sided position without going through the "mint pair and sell one side" flow.
The market maker itself is a Mettalex Pool Controller contract that makes use of a private Balancer pool internally to set position token prices in line with the underlying asset price.