Code Monkey home page Code Monkey logo

mux-protocol-on-scroll-network's Introduction

mux-protocol

MUX Protocol is a next-generation margin-trading protocol that allows users to easily handle transaction across multiple networks. The fund management features also help liquidity providers to earn additional revenue on top of transaction fees.

Overview

overview

The LiquidityPool and OrderBook are the core modules for margin-trading.

The protocol defines a whitelist of assets in which tokens are allowed to be deposited as collateral or trade as position.

Traders need to place position-orders through the OrderBook contract to handle transactions of trading, withdrawal or liquidity providing.

The broker decides when to fill the placed orders according to the data from external oracles.

The LiquidityManager manages the assets from liquidity providers. There are various adapters to help LiquidityManager transfers assets between dex and chain bridges.

All the provided liquidities will be prioritized to fill the needs of opening positions. Otherwise, to earn extra profits, the assets will be used to farm on external dex when the utilization are lower than a threshold.

The TimelockController is transaction executor with time delay. It manages all the key parameters of LiquidityManager and OrderBook. Besides, after approved, it can still perform some limited operations (for example, pause) without delay for security reason.

Compile

npx hardhat compile

Run test cases

npx hardhat test

Deploy test suite on Arbitrum-rinkeby

node_modules/.bin/hardhat --network arbrinkeby run scripts/deployArbtest.ts

mux-protocol-on-scroll-network's People

Contributors

multiplex-galaxy avatar

Stargazers

Neme avatar

Watchers

 avatar

Forkers

cryptomummy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.