bmstar2012 / drift-protocol-v2

On-chain perpetuals dex with multiple liquidity mechanisms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

# 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

License:Apache License 2.0


Languages

Language:Rust 63.1%Language:TypeScript 36.5%Language:JavaScript 0.4%Language:Shell 0.0%