2 min read Updated

How to buy or sell a stablecoin

A stablecoin created with DAppCrypto is bought and sold directly from its smart contract at a fixed price, without a DEX:

  • Buy — you give the parent token (for example USDT) and receive newly minted stablecoins.
  • Sell — you give stablecoins (they are burned) and receive the parent token from the contract reserve.
  • No slippage and no liquidity pool: the price is set in the contract.

Swap a stablecoinMint on buy, burn on sell — at a fixed price, straight from the contract.

Open stablecoin swap

Before you start

  • The stablecoin address.
  • To buy — the parent token in your wallet; to sell — the stablecoins.
  • The native coin for gas.

Step-by-step

  1. Open the swap page

    Use https://dappcrypto.github.io/?dpage=SwapST&Token=<stablecoin address> or click Swap stable token on the token page.

  2. Connect your wallet and choose a network

    • Ethereum gas in ETH
    • BNB Smart Chain gas in BNB
    • Arbitrum gas in ETH
    • Base gas in ETH
    • Polygon gas in POL
    • Optimism gas in ETH
    • BNB Smart Chain Testnet testnet · gas in tBNB
  3. Fill in the form

    • Choose Buy or Sell; the arrows button (Reverse direction) flips it.
    • You pay — the amount you give. MAX fills in your whole balance.
    • You receive (before tax) is calculated at the fixed price.
    • Check Price, Tax (if the owner set one) and Received — the amount after tax.

    The Stable token block shows the parent token, Pool reserve and buy/sell taxes.

  4. Confirm in your wallet

    Click Buy or Sell. First approve the token you give (the parent token when buying, the stablecoin when selling), then confirm the swap.

  5. Check the result

    Balances update on the page. Open the transaction in the explorer from the notification.

Smart contracts

The swap is executed by the stablecoin contract itself (its address is in the link and on the token page). Stablecoins are deployed from this template:

Stable token template

Template contract the factory clones for every 100% backed stablecoin.

Tips and common errors

  • Balance is low — not enough tokens in your wallet.
  • Insufficient liquidity for this trade. — the reserve does not hold enough parent token for this sale.
  • This is not a stable token — the address is not a DAppCrypto stablecoin.
  • The owner sets and can change buy and sell taxes. Always look at Received before confirming.