TheGreatHB / OBEX

Order Book Exchange. Only for exchanging between ETH and ERC20 tokens.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OBEX

OBEX is an decentralized exchange (DEX) where people can trade their ERC20 tokens to ETH and their ETH to ERC20 tokens through orderbook system.

Features

This repository contains two contracts.

  • OBEX
  • Orderbook.

With OBEX, you can trade your ETH or ERC20 tokens to ERC20 tokens or ETH as setting what token you want and how many tokens you want.

With Orderbook, you can find orders you've made or orders you want to find.

Development

  • run npm install to install all node dependencies
  • run npx hardhat compile to compile

Run Test With Hardhat Network

Tests are located in the test directory and can be modified as required. To run them:

  • npx hardhat test

Test Coverage

Contributions

Please open all pull requests against the main branch.

License

Distributed under the MIT License. See LICENSE for more information.

About

Order Book Exchange. Only for exchanging between ETH and ERC20 tokens.

License:MIT License


Languages

Language:JavaScript 59.9%Language:Solidity 40.1%