Hydra Protocol, formally known as HydraSwap is a Solana-based decentralized exchange that is dedicated to providing users with a CEX-level trading experience. Empowered by its game-changing Hydra Market Maker ( HMM) core, it is a high-performance AMM focused on maximizing the returns for liquidity providers. Our vision is to attract more liquidity into decentralized exchanges and bring the trading experience of the average DeFi user to the same level as centralized exchanges.
- Hydra Protocol is in active development and all API are subject to change
- This is currently experimental and unaudited software. Use at your own risk.
All programs can be found in ./programs
and all integration tests can be found in ./tests
- hydra-farming
- hydra-multisig
- hydra-pools
- hydra-staking
- hydra-vesting
Some of the following dependencies can be installed via the make task: make install_dependencies
.
Please make sure you valid you have all the correct versions post install.
Direction can be found here
$ rustc --version
rustc 1.60.0 (7737e0b5c 2022-04-04)
Directions can be found here
$ solana --version
solana-cli 1.9.18 (src:5d0f2a9f; feat:1070292356)
Direction can be found here
$ node --version
v16.14.2
Direction can be found here
$yarn --version
1.22.18
cargo install wasm-pack
$wasm-pack -V
wasm-pack 0.10.2
cargo install wasm-bindgen-cli
Directions can be found here.
You can also use our own fork by running make install_anchor
$ anchor --version
anchor-cli 0.24.2
yarn
make build
To build the javascript components you need to have built and deployed anchor to a local solana-test-validator
so that
your IDLs contain programIds.
After anchor deploy
you can run:
yarn build
We would like to make this experience more seamless.
anchor deploy
make test
make migrate