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:
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.