Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.82 KB

README.md

File metadata and controls

44 lines (29 loc) · 1.82 KB

Margined Protocol Perpetuals

This repo contains a the Margined Protocol a decentralized perpetual contract protocol for CosmWasm networks.

Overview

Overview is at doc

Contracts

Contract Reference Description
Margin Engine doc Margin engine that manages users positions and the collateral management
vAMM doc Virtual AMM enabling users to take perpetual positions
Insurance Fund doc Contract that holds funds to cover shortfalls
Fee Pool doc Contract that accrues the fees generated by protocol to be redistributed to ORAIX token holders
Price Feed doc Integration contract for the data oracles and other data related logic

We migrate contracts directly without using factory pattern, migration proposals are voted on Oraichain.

Get started

Environment Setup

  1. Install rustup via https://rustup.rs/

  2. Run the following:

rustup default stable
rustup target add wasm32-unknown-unknown

Unit / Integration Tests

To run the tests after installing pre-requisites do the following:

cargo test