Skip to content

AutomaticToucan150/mux3-protocol

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

124 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mux3-protocol

MUX3 Protocol is an advanced margin trading protocol that enables traders to maintain positions using cross-margin strategies while enhancing capital efficiency for liquidity providers (LPs).

Traders can use multiple collateral tokens to maintain their positions, providing greater flexibility in risk management.

Unlike traditional protocols, MUX3 splits backed Collateral Pool into multiple Pools, allowing LPs to provide single-token liquidity and better control their asset exposure.

Protocol Structure

The protocol primarily consists of the Mux3 and the OrderBook. When an Order is placed on the OrderBook, off-chain Broker query the dark Oracle to get marketPrice and call OrderBook to fill the order. The OrderBook contract communicates with the Mux3 to execute the trade.

The Mux3 uses a Diamond proxy pattern with multiple facets handling different aspects of functionality including FacetOpen, FacetClose, FacetPositionAccount, FacetManagement, FacetReader.

Development

In order to run the unit tests, you probably need to open hardhat.config.ts and modify optimizerSteps to "u".

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 56.6%
  • Solidity 43.4%