Skip to content

Ithil-protocol/wizardex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wizardex

WizarDex

Solidity NodeJS

Discord Twitter Website Docs

A fully on-chain fee-less orderbook model dex by Ithil.

This repository contains the core smart contracts for WizarDex V1.

Key Features

  • Market and limit orders on any ERC20 token pair
  • Zero slippage
  • No fees
  • Internal MEV to boost order execution priority
  • No off-chain parts

Installation

Prerequisites for this project are:

  • Git
  • NodeJS v16.x
  • Rust
  • Yarn

To get a copy of the source

git clone https://github.com/Ithil-protocol/wizardex
cd v1-core
forge install

Usage

Create an environment file .env copying the template environment file

cp .env.example .env

and add the following content:

ARBITRUM_RPC_URL="https://..." needed to run arbitrum fork tests
ETHERSCAN_API_KEY="" to verify contracts on the block explorer

Load it in your local env with source .env and finally you can compile the contracts:

forge build

Test

forge test

and to view in details the specific transactions happening

forge test -vvvv

Security

This code, despite heavily documented and tested, has not been audited.

Licensing

The main license for the Ithil contracts is the Business Source License 1.1 (BUSL-1.1), see LICENSE file to learn more. The Solidity files licensed under the BUSL-1.1 have appropriate SPDX headers.

Disclamer

This application is provided "as is" and "with all faults." Me as developer makes no representations or warranties of any kind concerning the safety, suitability, lack of viruses, inaccuracies, typographical errors, or other harmful components of this software. There are inherent dangers in the use of any software, and you are solely responsible for determining whether this software product is compatible with your equipment and other software installed on your equipment. You are also solely responsible for the protection of your equipment and backup of your data, and THE PROVIDER will not be liable for any damages you may suffer in connection with using, modifying, or distributing this software product.