This repo contains a the Margined Protocol a decentralized perpetual contract protocol for CosmWasm networks.
Overview is at doc
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.
- Rust v1.44.1+
wasm32-unknown-unknown
target- https://github.com/oraichain/cosmwasm-tools
-
Install
rustup
via https://rustup.rs/ -
Run the following:
rustup default stable
rustup target add wasm32-unknown-unknown
To run the tests after installing pre-requisites do the following:
cargo test