BNB/USDT|608.42▲ +2.14%
BTC/USDT|94,280.00▲ +1.08%
ETH/USDT|3,412.55▼ -0.73%
SOL/USDT|182.30▲ +3.21%
CAKE/USDT|2.84▼ -1.15%
ADA/USDT|0.7842▲ +0.92%
LINK/USDT|18.44▼ -0.44%
BNB/USDT|608.42▲ +2.14%
BTC/USDT|94,280.00▲ +1.08%
ETH/USDT|3,412.55▼ -0.73%
SOL/USDT|182.30▲ +3.21%
CAKE/USDT|2.84▼ -1.15%
ADA/USDT|0.7842▲ +0.92%
LINK/USDT|18.44▼ -0.44%
DEFI EXCHANGE PROTOCOL v1.0
Trade. Swap. Earn. On-chain.

DECENTRALIZED EXCHANGE (DEX) PROTOCOL

Trade cryptocurrencies directly on-chain with automated market making. Full custody. Zero intermediaries. 24/7 permissionless access on Binance Smart Chain.

Status Coming Soon
Network BSC Chain
Type AMM DEX
LIVE
BNB $608.42 ETH $3,412 SOL $182 FEE 0.30%
--:--:--
SWAP TERMINAL
DEMO
▸ YOU PAY BAL: 1,250.00
💵 USDT
≈ $100.00
▸ YOU RECEIVE BAL: 2.041
0.1644
🟡 BNB
≈ $99.97
RATE1 BNB = 608.42 USDT
PRICE IMPACT< 0.01%
MIN RECEIVED0.1628 BNB
PROTOCOL FEE0.30 USDT
🔒 DEMO MODE — CONNECT WALLET TO TRADE
HEXA PROOF AUDIT
BSC VERIFIED
NON-CUSTODIAL
0.30% FEE
24/7 ALWAYS ON
BSCBINANCE CHAIN
💧
AMMAUTO MARKET MAKER
🔒
0.30%TRADING FEE
🌐
24/7ALWAYS OPEN
NON-CUSTODIALYOUR KEYS
🛡
AUDITEDHEXA PROOF
BSCBINANCE CHAIN
💧
AMMAUTO MARKET MAKER
🔒
0.30%TRADING FEE
🌐
24/7ALWAYS OPEN
NON-CUSTODIALYOUR KEYS
🛡
AUDITEDHEXA PROOF
// PROTOCOL OVERVIEW
What is a DEX?

Trade Without Intermediaries

A Decentralized Exchange (DEX) is a blockchain-based platform that allows users to trade cryptocurrencies directly with each other — no centralized intermediary required.

Unlike traditional exchanges, a DEX operates through smart contracts and automated protocols, giving users full control over their funds and eliminating counterparty risk.

"DEXs represent the core of DeFi — trustless, transparent, and permissionless alternatives to centralized exchanges."

CONSTANT PRODUCT FORMULA
x × y = k
PRICE ADJUSTS AUTOMATICALLY WITH SUPPLY & DEMAND
x
TOKEN A RESERVE
y
TOKEN B RESERVE
k
CONSTANT PRODUCT
// KEY CAPABILITIES
Features & Benefits
01

NON-CUSTODIAL TRADING

  • Users retain ownership in their own wallets
  • No deposit into exchange accounts needed
  • Eliminates risk of exchange hacks or theft
02

AUTOMATED MARKET MAKING

  • AMMs replace traditional order books
  • Liquidity pools enable seamless swaps
  • x × y = k constant product formula
03

GLOBAL PERMISSIONLESS

  • Trade with just a wallet — no KYC
  • 24/7 worldwide, zero downtime
  • Instant borderless access for everyone
04

INCENTIVIZED LIQUIDITY

  • LPs earn 0.30% fee on every trade
  • Governance token rewards available
  • Deep liquidity reduces price slippage
05

CENSORSHIP RESISTANT

  • No authority can freeze assets or trades
  • Resistant to regulatory shutdowns
  • Ideal for global & restricted regions
06

FULL TRANSPARENCY

  • All transactions auditable on-chain
  • Smart contracts enforce rules automatically
  • No reliance on third-party intermediaries
USE CASES

Built for Decentralized Finance

DEXs are the backbone of DeFi — offering a trustless, transparent, and permissionless alternative to centralized exchanges. The DefiAX DEX empowers individuals to trade securely with full asset custody and zero counterparty risk.

🔄
Token swapping for retail and institutional traders
🌾
Yield farming via liquidity provision
🚀
Launching new tokens without centralized listing
🛡
P2P trading in censorship-prone regions
// SMART CONTRACT
DeFi Exchange Protocol

Open source • Auditable • AMM DEX on BSC / ETH

⬡ Solidity ^0.8.24
⚠ Educational Only
SimpleDEX.sol — AMM DEX Prototype
SOLIDITY ^0.8.24
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
interface IERC20 {
    function transfer(address to, uint256 value) external returns (bool);
    function transferFrom(address from, address to, uint256 value) external returns (bool);
    function balanceOf(address user) external view returns (uint256);
}
contract SimpleDEX {
    IERC20 public tokenA; IERC20 public tokenB;
    uint256 public reserveA; uint256 public reserveB;
    uint256 public totalLiquidity;
    mapping(address => uint256) public liquidityOf;
    uint256 public constant FEE_BPS = 30; uint256 public constant BPS = 10_000;
    event Swap(address indexed trader, address tokenIn, uint256 amountIn, address tokenOut, uint256 amountOut);
    constructor(IERC20 _tokenA, IERC20 _tokenB) { tokenA = _tokenA; tokenB = _tokenB; }
    function addLiquidity(uint256 amountA, uint256 amountB) external {
        require(amountA > 0 && amountB > 0, "Zero");
        tokenA.transferFrom(msg.sender, address(this), amountA);
        tokenB.transferFrom(msg.sender, address(this), amountB);
        uint256 liq = totalLiquidity == 0 ? _sqrt(amountA * amountB)
            : _min((amountA * totalLiquidity) / reserveA, (amountB * totalLiquidity) / reserveB);
        liquidityOf[msg.sender] += liq; totalLiquidity += liq;
        reserveA += amountA; reserveB += amountB;
    }
    function swapAForB(uint256 amountIn) external {
        require(amountIn > 0, "Zero");
        tokenA.transferFrom(msg.sender, address(this), amountIn);
        uint256 fee = (amountIn * (BPS - FEE_BPS)) / BPS;
        uint256 amountOut = (reserveB * fee) / (reserveA + fee);
        require(amountOut > 0, "Zero out");
        tokenB.transfer(msg.sender, amountOut);
        reserveA += amountIn; reserveB -= amountOut;
        emit Swap(msg.sender, address(tokenA), amountIn, address(tokenB), amountOut);
    }
    function swapBForA(uint256 amountIn) external {
        require(amountIn > 0, "Zero");
        tokenB.transferFrom(msg.sender, address(this), amountIn);
        uint256 fee = (amountIn * (BPS - FEE_BPS)) / BPS;
        uint256 amountOut = (reserveA * fee) / (reserveB + fee);
        require(amountOut > 0, "Zero out");
        tokenA.transfer(msg.sender, amountOut);
        reserveB += amountIn; reserveA -= amountOut;
        emit Swap(msg.sender, address(tokenB), amountIn, address(tokenA), amountOut);
    }
    function getPriceAinB() external view returns (uint256) { return (reserveB * 1e18) / reserveA; }
    function getReserves() external view returns (uint256, uint256) { return (reserveA, reserveB); }
    function _min(uint256 x, uint256 y) internal pure returns (uint256) { return x < y ? x : y; }
    function _sqrt(uint256 y) internal pure returns (uint256 z) {
        if (y > 3) { z = y; uint256 x = y / 2 + 1; while (x < z) { z = x; x = (y / x + x) / 2; } }
        else if (y != 0) { z = 1; }
    }
}
LAUNCH DEX APP →
✓ CODE COPIED