Skip to content

drift-labs/protocol-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

439093e · Mar 24, 2025
Aug 17, 2023
Aug 14, 2024
Mar 5, 2025
Oct 9, 2024
Nov 17, 2022
Nov 4, 2022
Jun 10, 2024
Feb 4, 2025
Mar 21, 2025
Mar 24, 2025
Mar 6, 2025
Mar 20, 2025
Feb 18, 2022
Oct 2, 2024
Dec 15, 2022
Jan 6, 2022
Aug 7, 2023
Mar 27, 2024
Jan 28, 2025
Dec 11, 2024
Mar 21, 2025
Mar 21, 2025
Jul 25, 2024
Nov 5, 2021
Oct 15, 2024
May 1, 2023
Nov 10, 2023
Mar 17, 2025
Oct 10, 2021
Nov 5, 2021
Mar 17, 2025

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.

Integrating Drift? Go here

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