protocol

所属分类:区块链开发
开发工具:JavaScript
文件大小:166KB
下载次数:0
上传日期:2023-01-23 21:57:34
上 传 者sh-1993
说明:  Hydro Protocol去中心化交换智能合约
(Hydro Protocol decentralized exchange smart contracts)

文件列表:
.circleci (0, 2020-02-13)
.circleci\config.yml (487, 2020-02-13)
.prettierrc (699, 2020-02-13)
.solcover.js (544, 2020-02-13)
LICENSE.txt (11751, 2020-02-13)
contracts (0, 2020-02-13)
contracts\ExternalFunctions.sol (10752, 2020-02-13)
contracts\GlobalStore.sol (781, 2020-02-13)
contracts\Hydro.sol (1263, 2020-02-13)
contracts\HydroToken.sol (968, 2020-02-13)
contracts\Migrations.sol (515, 2020-02-13)
contracts\Operations.sol (3477, 2020-02-13)
contracts\components (0, 2020-02-13)
contracts\components\OperationsComponent.sol (6096, 2020-02-13)
contracts\exchange (0, 2020-02-13)
contracts\exchange\Discount.sol (5682, 2020-02-13)
contracts\exchange\Exchange.sol (21407, 2020-02-13)
contracts\exchange\Relayer.sol (3042, 2020-02-13)
contracts\funding (0, 2020-02-13)
contracts\funding\Auctions.sol (13754, 2020-02-13)
contracts\funding\BatchActions.sol (8361, 2020-02-13)
contracts\funding\CollateralAccounts.sol (4343, 2020-02-13)
contracts\funding\CommonInterestModel.sol (1224, 2020-02-13)
contracts\funding\DefaultInterestModel.sol (1125, 2020-02-13)
contracts\funding\LendingPool.sol (16347, 2020-02-13)
contracts\funding\LendingPoolToken.sol (1960, 2020-02-13)
contracts\funding\StableCoinInterestModel.sol (1252, 2020-02-13)
contracts\helper (0, 2020-02-13)
contracts\helper\PriceOracle.sol (1203, 2020-02-13)
contracts\helper\StandardToken.sol (3810, 2020-02-13)
contracts\helper\TestMath.sol (1308, 2020-02-13)
contracts\helper\TestSafeERC20.sol (1082, 2020-02-13)
contracts\helper\TestToken.sol (1127, 2020-02-13)
contracts\interfaces (0, 2020-02-13)
contracts\interfaces\IEth2Dai.sol (1240, 2020-02-13)
contracts\interfaces\IInterestModel.sol (800, 2020-02-13)
... ...

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

近期下载者

相关文件


收藏者