Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Hydro Protocol

CircleCI codecov

Hydro Protocol is an open-source framework for building decentralized exchanges on Ethereum.

Hydro is designed for developers looking to build decentralized exchanges without having to deal with the complexity and expense of designing, deploying, and securing their own smart contracts.


Hydro v2 has a lot of new features compared with v1. It supports lending, borrowing, margin trading, spot trading features.

  • All great trading features in v1 version.
  • A standalone funding pool to support margin trading, lending, borrowing.
  • Built-in Funding insurance.
  • Contract-deposit mode. Supports both ERC20 and Ether.
  • Even less gas usage

Hydro v1 contains a single exchange contract called HybridExchange.sol with the following attributes:

  • No order collision
  • No possibility of front-running
  • Accurate market orders
  • Ability to collect fees as a percentage of the traded assets
  • Allows asymmetrical maker/taker fee structure, rebates, discounts
  • Multiple settlement models:
    • Wallet to wallet mode
    • Contract-deposit mode (supports ETH)
  • Highly optimized gas usage


npm install

To build json ABI files:

npm run compile


npm run coverage


  1. Fork it (
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request


This project is licensed under the Apache-2.0 License - see the LICENSE.txt file for details