Skip to content

Margined Protocol Perpetuals for CosmWasm Networks

License

Notifications You must be signed in to change notification settings

oraichain/perpetuals

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Margined Protocol Perpetuals for CosmWasm Networks

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%