Skip to content

a vault program on top of protocol-v2 for delegate-managed trades with customizable terms

Notifications You must be signed in to change notification settings

drift-labs/drift-vaults

Folders and files

NameName
Last commit message
Last commit date

Latest commit

76aca2e · Mar 15, 2025
Feb 26, 2025
Jun 1, 2023
Mar 10, 2025
Mar 10, 2025
Mar 13, 2025
Mar 15, 2025
Oct 30, 2023
Jun 1, 2023
Feb 28, 2025
Jun 1, 2023
Jun 1, 2023
Jan 28, 2025
Feb 26, 2025
Mar 12, 2025
Mar 4, 2025
Sep 9, 2023
Oct 29, 2024
Oct 8, 2024
Feb 26, 2025
Mar 15, 2025
Oct 29, 2024
Oct 8, 2024
Feb 26, 2025
Mar 15, 2025

Repository files navigation

Drift Vaults

soon^TM

did you see the CLI? and the wiki?

Development

  • anchor 0.29.0
  • rust 1.70.0
  • solana 1.16.27
# if you don't have avm, install it here:
# https://book.anchor-lang.com/getting_started/installation.html
avm use 0.29.0

# if on Apple Silicon:
# rustup override set 1.70.0-x86_64-apple-darwin
# else
rustup override set 1.70.0

# if you already have solana:
# solana-install init 1.16.27
# else:
sh -c "$(curl -sSfL https://release.solana.com/v1.16.27/install)"

If on Mac and getting this error:

Error: failed to start validator: Failed to create ledger at test-ledger: blockstore error

then run these commands:

brew install gnu-tar
# Put this in ~/.zshrc
export PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH"

Run tests

yarn && cd ts/sdk && yarn && yarn build && cd ..

# can be any valid key
ANCHOR_WALLET=~/.config/solana/id.json && anchor test

For ease-of-use you can run the following script to build and test instead:

chmod +x ./test.sh
./test.sh

About

a vault program on top of protocol-v2 for delegate-managed trades with customizable terms

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages