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: 2024-09-26T17:27:59.000Z (7 days ago)
- Last Synced: 2024-09-26T18:01:18.097Z (7 days ago)
- Topics: rust, smart-contracts, solana
- Language: TypeScript
- Homepage:
- Size: 22.1 MB
- Stars: 203
- Watchers: 15
- Forks: 105
- Open Issues: 67
-
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.
# 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)