/iZiSwap-core

💧 Core Contracts for iZiSwap.

Primary LanguageJavaScriptOtherNOASSERTION

iZiSwap-core

Core contracts for iZiSwap, a next-generation DEX to maximize capital efficiency by supporting concentrated liquidity and realizing Limit Order in a decentralized way. iZiSwap Periphery contracts are suggested entrances to interact with the core contracts.

Overview

iZiSwap core includes the core logic implementation for swap, liquidity management, and limit orders. Due to the size limitations of individual contracts on most EVM-compatible blockchains, we have modularized the core logic into separate modules. In the main contract, iZiSwapPool, we utilize the delegateCall() method to invoke these modules.

More details can be found in the iZiSwap whitepaper and the Developer Doc.

Licensing

The primary license for iZiSwap Core is the Business Source License 1.1 (BUSL-1.1), see LICENSE.

Use source code as npm package

$ npm install iziswap_core

An example to usage this package

import '@izumifinance/iziswap_core/contracts/interfaces/IiZiSwapPool.sol';

contract Foo {
  IiZiSwapPool pool;

  function bar() {
      // pool.addLimOrderWithY(...)
      // pool.addLimOrderWithX(...)
  }
}