Code Monkey home page Code Monkey logo

protocol's Introduction

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.

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 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

Installation

npm install

To build json ABI files:

npm run compile

Tests

npm run coverage

Contributing

  1. Fork it (https://github.com/hydroprotocol/protocol/fork)
  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 file for details

protocol's People

Contributors

davidqhr avatar dependabot[bot] avatar keevon avatar mingmin-101 avatar swinges avatar szerintedmi avatar tstyle11 avatar wlchn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

protocol's Issues

Store.sol found

Is the Store. sol file a missing file or a custom file supposed to be added by developers and imported to the GlobalStore.sol file

https://ddex.io/ uses same protocol ?

ddex.io using same version or a different one ?

Lets say I want to start a decentralized exchange using HydraProtocol SDK. If i set it up under my website, can the users see trade histories that is made in DDex.io ?

Also is there any documentation to push it to a hosting provider?

Front running question

Hi,

Is there a documentation that explains how hydro protocol prevents front running?

Thank you!

Failed to install via npm

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Tobb>cd hydro-protocol

C:\Users\Tobb\hydro-protocol>npm install
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Tobb\hydro-protoc
ol\node_modules.staging\web3-core-helpers-9909886b\package.json'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Tobb\hydro-protoc
ol\node_modules.staging\web3-eth-contract-d719605b\package.json'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Tobb\hydro-protoc
ol\node_modules.staging\web3-core-requestmanager-5a6c0de0\package.json'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Tobb\hydro-protoc
ol\node_modules.staging\web3-eth-iban-a58146ee\package.json'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Tobb\hydro-protoc
ol\node_modules.staging\web3-core-helpers-9909886b\README.md'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Tobb\hydro-protoc
ol\node_modules.staging\web3-eth-contract-d719605b\LICENSE'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Tobb\hydro-protoc
ol\node_modules.staging\web3-core-requestmanager-5a6c0de0\README.md'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Tobb\hydro-protoc
ol\node_modules.staging\web3-eth-iban-a58146ee\README.md'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Tobb\hydro-protoc
ol\node_modules.staging\web3-eth-contract-d719605b\README.md'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Tobb\hydro-protoc
ol\node_modules.staging\web3-providers-ws-22f6c8c1\src\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Tobb\hydro-protoc
ol\node_modules.staging\web3-eth-ens-73cee04f\dist\web3-eth-ens.cjs.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Tobb\hydro-protoc
ol\node_modules.staging\source-map-8d9b048b\dist\source-map.debug.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Tobb\hydro-protoc
ol\node_modules.staging\web3-core-85a8cf7b\src\extend.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Tobb\hydro-protoc
ol\node_modules.staging\web3-core-85a8cf7b\src\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Tobb\hydro-protoc
ol\node_modules.staging\web3-eth-ens-943b59e4\src\contracts\Registry.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Tobb\hydro-protoc
ol\node_modules.staging\web3-eth-ens-943b59e4\src\ENS.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Tobb\hydro-protoc
ol\node_modules.staging\web3-eth-ens-943b59e4\src\index.js'
npm ERR! code ENOGIT
npm ERR! Error while executing:
npm ERR! undefined ls-remote -h -t git://github.com/frozeman/WebSocket-Node.git
npm ERR!
npm ERR! undefined
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Tobb\AppData\Roaming\npm-cache_logs\2020-11-10T05_57_48_3
83Z-debug.log

May you help me with this, please.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.