Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drift-labs/protocol-v2
On-chain perpetuals dex with multiple liquidity mechanisms
https://github.com/drift-labs/protocol-v2
rust smart-contracts solana
Last synced: 6 days ago
JSON representation
On-chain perpetuals dex with multiple liquidity mechanisms
- Host: GitHub
- URL: https://github.com/drift-labs/protocol-v2
- Owner: drift-labs
- License: apache-2.0
- Created: 2022-05-27T15:21:34.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-16T22:37:36.000Z (14 days ago)
- Last Synced: 2025-01-17T07:01:59.811Z (13 days ago)
- Topics: rust, smart-contracts, solana
- Language: TypeScript
- Homepage:
- Size: 33.5 MB
- Stars: 235
- Watchers: 14
- Forks: 125
- Open Issues: 78
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Drift Protocol v2
This repository provides open source access to Drift V2's Typescript SDK, Solana Programs, and more.
Integrating Drift? [Go here](./sdk/README.md)
# SDK Guide
SDK docs can be found [here](./sdk/README.md)
# Example Bot Implementations
Example bots (makers, liquidators, fillers, etc) can be found [here](https://github.com/drift-labs/keeper-bots-v2)
# 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`
```bash
rustup default stable-x86_64-apple-darwin
```## Compiling Programs
```bash
# build v2
anchor build
# install packages
yarn
# build sdk
cd sdk/ && yarn && yarn build && cd ..
```## Running Rust Test
```bash
cargo test
```## Running Javascript Tests
```bash
bash test-scripts/run-anchor-tests.sh
```# Bug Bounty
Information about the Bug Bounty can be found [here](./bug-bounty/README.md)