Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/HydroProtocol/protocol
Hydro Protocol decentralized exchange smart contracts
https://github.com/HydroProtocol/protocol
decentralized-exchange erc20 ethereum hydroprotocol solidity
Last synced: about 2 months ago
JSON representation
Hydro Protocol decentralized exchange smart contracts
- Host: GitHub
- URL: https://github.com/HydroProtocol/protocol
- Owner: HydroProtocol
- License: apache-2.0
- Created: 2018-12-15T02:14:17.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T21:57:34.000Z (almost 2 years ago)
- Last Synced: 2023-11-07T17:19:32.064Z (about 1 year ago)
- Topics: decentralized-exchange, erc20, ethereum, hydroprotocol, solidity
- Language: JavaScript
- Homepage: https://hydroprotocol.io
- Size: 1.32 MB
- Stars: 104
- Watchers: 14
- Forks: 104
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## Hydro Protocol
[![CircleCI](https://circleci.com/gh/HydroProtocol/protocol/tree/master.svg?style=svg)](https://circleci.com/gh/HydroProtocol/protocol/tree/master)
[![codecov](https://codecov.io/gh/HydroProtocol/protocol/branch/master/graph/badge.svg)](https://codecov.io/gh/HydroProtocol/protocol)> Hydro Protocol is an open-source framework for building decentralized exchanges on Ethereum.
![](./images/hydro_small.jpg)
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.
## Features
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 usageHydro 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## Installation
```bash
npm install
```
To build json ABI files:```bash
npm run compile
```## Tests
```bash
npm run coverage
```## Contributing
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## License
This project is licensed under the Apache-2.0 License - see the [LICENSE.txt](LICENSE.txt) file for details