BelizeX - Decentralized Exchange
BelizeX is a production-ready Uniswap V2-style automated market maker built with ink! smart contracts on BelizeChain.
Architecture
- Factory Contract: Creates and manages trading pairs with deterministic addresses.
- Pair Contract: Constant product AMM (
x * y = k) with liquidity pools and a TWAP (Time-Weighted Average Price) oracle for secure price feeds. - Router Contract: Provides a user-friendly swap interface with multi-hop routing and slippage protection.
- PSP22 Integration: Seamless cross-contract token transfers natively supported.
Integration
BelizeX integrates with the Economy pallet, allowing liquidity pools to include the native dual-currencies, DALLA and bBZD.
Developers can interact with BelizeX easily using the provided JavaScript/TypeScript SDK, which contains 22 dedicated methods for interacting with the exchange.