{"id":21658772,"url":"https://github.com/HydroProtocol/protocol","last_synced_at":"2025-07-17T21:31:36.140Z","repository":{"id":33812091,"uuid":"161861148","full_name":"HydroProtocol/protocol","owner":"HydroProtocol","description":"Hydro Protocol decentralized exchange smart contracts","archived":false,"fork":false,"pushed_at":"2023-01-23T21:57:34.000Z","size":1385,"stargazers_count":104,"open_issues_count":13,"forks_count":104,"subscribers_count":14,"default_branch":"master","last_synced_at":"2023-11-07T17:19:32.064Z","etag":null,"topics":["decentralized-exchange","erc20","ethereum","hydroprotocol","solidity"],"latest_commit_sha":null,"homepage":"https://hydroprotocol.io","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HydroProtocol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-15T02:14:17.000Z","updated_at":"2023-08-08T10:52:03.000Z","dependencies_parsed_at":"2023-02-13T03:45:14.862Z","dependency_job_id":null,"html_url":"https://github.com/HydroProtocol/protocol","commit_stats":null,"previous_names":[],"tags_count":2,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HydroProtocol%2Fprotocol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HydroProtocol%2Fprotocol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HydroProtocol%2Fprotocol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HydroProtocol%2Fprotocol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HydroProtocol","download_url":"https://codeload.github.com/HydroProtocol/protocol/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226305007,"owners_count":17603725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["decentralized-exchange","erc20","ethereum","hydroprotocol","solidity"],"created_at":"2024-11-25T09:29:48.534Z","updated_at":"2024-11-25T09:30:06.328Z","avatar_url":"https://github.com/HydroProtocol.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"## Hydro Protocol\n\n[![CircleCI](https://circleci.com/gh/HydroProtocol/protocol/tree/master.svg?style=svg)](https://circleci.com/gh/HydroProtocol/protocol/tree/master)\n[![codecov](https://codecov.io/gh/HydroProtocol/protocol/branch/master/graph/badge.svg)](https://codecov.io/gh/HydroProtocol/protocol)\n\n\n\u003e Hydro Protocol is an open-source framework for building decentralized exchanges on Ethereum.\n\n![](./images/hydro_small.jpg)\n\nHydro 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.\n\n## Features\n\nHydro v2 has a lot of new features compared with v1. It supports lending, borrowing, margin trading, spot trading features.\n\n* All great trading features in v1 version.\n* A standalone funding pool to support margin trading, lending, borrowing.\n* Built-in Funding insurance.\n* Contract-deposit mode. Supports both ERC20 and Ether.\n* Even less gas usage\n\nHydro v1 contains a single exchange contract called `HybridExchange.sol` with the following attributes:\n\n* No order collision\n* No possibility of front-running\n* Accurate market orders\n* Ability to collect fees as a percentage of the traded assets\n* Allows asymmetrical maker/taker fee structure, rebates, discounts\n* Multiple settlement models:\n  * Wallet to wallet mode\n  * Contract-deposit mode (supports ETH)\n* Highly optimized gas usage\n\n## Installation\n\n```bash\nnpm install\n```\nTo build json ABI files:\n\n```bash\nnpm run compile\n```\n\n## Tests\n\n```bash\nnpm run coverage\n```\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/hydroprotocol/protocol/fork\u003e)\n2. Create your feature branch (`git checkout -b feature/fooBar`)\n3. Commit your changes (`git commit -am 'Add some fooBar'`)\n4. Push to the branch (`git push origin feature/fooBar`)\n5. Create a new Pull Request\n\n## License\n\nThis project is licensed under the Apache-2.0 License - see the [LICENSE.txt](LICENSE.txt) file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHydroProtocol%2Fprotocol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHydroProtocol%2Fprotocol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHydroProtocol%2Fprotocol/lists"}