🟒DEX Testnet Smart Contract

Xorai DEX Testnet Smart Contract Documentation

Overview

This documentation provides detailed information on the smart contracts deployed on the Xorai Testnet for the decentralized exchange (DEX). These contracts facilitate token swaps, liquidity provision, and trading activities within the Xorai ecosystem.

Smart Contract Addresses

The following smart contracts are deployed on the Xorai Testnet:

Token Contracts

  • XFT (Xorai Finance Token): 0xE1425D7c9223AdDE698935d51523Ae063738199C

  • ZDT (Zathura Dex Token): 0x5a7c1F2835F6ae59fd4B3Ad1510faf79716c68f2

  • WXRI (Wrapped Xorai Token): 0x2780D39dF9cFE2417D5894DEDDF19f320C3fDA66

  • XCT (XoraiChatToken): 0x0D3e28c596ac82589E8C1d0A3735E3d61e70143e

DEX Core Contracts

  • Factory Contract: 0x95E37b60dFc89f631Ba6F84dCefCb6a883125C23

    • Responsible for creating new liquidity pools.

    • Stores mapping of token pairs to their respective pair contracts.

  • Router02 Contract: 0x8ff2aC974881d87F54e3A3e7A9Aa3596714B4F18

    • Facilitates token swaps, adding/removing liquidity, and route optimizations.

    • Implements Uniswap V2-style routing functionality.

Functionalities

1. Token Swaps

Users can swap one token for another using the Router02 contract. The contract determines the best swap route and executes the trade.

2. Providing Liquidity

Users can provide liquidity for supported token pairs by interacting with the Router02 contract. Liquidity providers receive LP (Liquidity Provider) tokens representing their share of the pool.

3. Removing Liquidity

Liquidity providers can remove their liquidity from the pool and receive their share of tokens back.

4. Wrapping & Unwrapping WXRI

Since WXRI is the wrapped version of the native Xorai token, users can wrap or unwrap their tokens for seamless compatibility with the DEX.

Developer Resources

For integration and development, use the Xorai Testnet RPC and contract addresses provided above. Developers can interact with the contracts using Web3 libraries such as ethers.js or web3.js.

License

This smart contract documentation is open-source and provided under the MIT License.


For further inquiries, reach out to the Xorai development team.

Last updated