Skip to content

On-chain perpetuals dex with multiple liquidity mechanisms

License

Notifications You must be signed in to change notification settings

cxp-13/protocol-v2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drift Protocol v2

Docs Discord Chat License

Drift Protocol v2

This repository provides open source access to Drift V2's Typescript SDK, Solana Programs, and more.

SDK Guide

SDK docs can be found here

Example Bot Implementations

Example bots (makers, liquidators, fillers, etc) can be found here

Building Locally

Note: If you are running the build on an Apple computer with an M1 chip, please set the default rust toolchain to stable-x86_64-apple-darwin

rustup default stable-x86_64-apple-darwin

Compiling Programs

# build v2
anchor build
# install packages
yarn
# build sdk
cd sdk/ && yarn && yarn build && cd ..

Running Rust Test

cargo test

Running Javascript Tests

bash test-scripts/run-anchor-tests.sh

Bug Bounty

Information about the Bug Bounty can be found here

About

On-chain perpetuals dex with multiple liquidity mechanisms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 52.2%
  • Rust 47.6%
  • Other 0.2%