Giter Site home page Giter Site logo

mai-protocol-v2's Introduction

MAI PROTOCOL V2 - PERPETUAL CONTRACT

Build Status Coverage Status

Mai Protocol V2 builds the decentralized Perpetual contracts on Ethereum.

The name Mai comes from two Chinese characters "买" which means buy and "卖" which means sell. Using pinyin (the modern system for transliterating Chinese characters to Latin letters) "买" is spelled Mǎi and "卖" is spelled Mài. Thus, "Mai" means "Buy" and "Sell".

Key Features

  • Isolated margin account management
  • Trade & manage the position
  • AMM to provide on-chain liquidity & funding rate
  • Funding payment between long/short positions
  • Validate the users' orders and execute the match result of order book
  • Liquidation of the unsafe position
  • Insurance fund
  • Socialize the liquidation loss
  • Global settlement when an emergency to keep the users' assets safe

Design Details

Check our documents to get more information.

Contracts

Mainnet

Contract Description Address
Perpetual Perpetual core logic including margin account, PnL, etc. 0x220a9f0DD581cbc58fcFb907De0454cBF3777f76
AMM Automated Market Maker 0xAAaC8434217575643B2D2aB6f12CE8600C625520
Proxy AMM margin account 0x05c363D2B9AFc36b070fe2c61711280eDC214678
GlobalConfig Common governance parameters 0x71e77Ffbbfd4418ED47981927738b5425c187F64
Exchange Orderbook exchange logic 0xbF5c98A4eD00C28957b6e15A01102DC2568D2650
PriceFeeder Price oracle 0x9B2D7D7f7b2810Ef2be979fc2ACebe6097d9563A
ShareToken Share token of the AMM 0xAe694FB9DCD1E6195519c0056B2aB19380B26FF2
ContractReader A batch reader in order to reduce calling consumption 0x53C9Df248150AD849bD1BadD3C83b0f6cb735052

mai-protocol-v2's People

Contributors

osp-ng avatar

Watchers

James Cloos avatar

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.