Decentralised exchanges (DEXs) like PancakeSwap do not use order books — the traditional system where buyers and sellers are matched directly. Instead, they use a model called an Automated Market Maker (AMM), where trading happens against a pool of tokens held in a smart contract. Understanding this model is essential for anyone participating in DeFi, whether as a trader, liquidity provider, or ICO participant.

Piacoin planned its own DEX — PiaDex — as a core component of the ecosystem described in the whitepaper. PiaDex was never launched, but PIA tokens trade (thinly) against WBNB on PancakeSwap v2. The PIA/WBNB pool illustrates several key AMM concepts in a real, archived context.


What Is a Liquidity Pool?

A liquidity pool is a smart contract holding reserves of two tokens — for example, PIA and WBNB. Users called liquidity providers (LPs) deposit equal values of both tokens into the pool. In exchange, they receive LP tokens representing their proportional share of the pool. These LP tokens can be redeemed later to withdraw the deposited tokens plus any fees earned.

💧
Liquidity Provider (LP)
Anyone who deposits a token pair into a pool. They earn a share of trading fees (typically 0.25% per swap on PancakeSwap) proportional to their pool share.
🪙
LP Tokens
Receipt tokens issued to LPs representing their pool share. Burning LP tokens withdraws the underlying assets. Locked LP tokens cannot be burned by the project team.
📉
Impermanent Loss
The opportunity cost LPs face when the price ratio of their deposited tokens changes. The greater the divergence, the greater the potential loss vs. simply holding the tokens.
📊
Price Slippage
Large trades relative to pool size move the price significantly. Thin pools — like PIA/WBNB — cause high slippage, making large trades economically unfeasible.

The x × y = k Formula

Every AMM using the Constant Product Market Maker model — including PancakeSwap v2 (which the PIA/WBNB pool uses) — determines prices through a single mathematical relationship:

x × y = k
x = reserve of token A  ·  y = reserve of token B  ·  k = constant product

When a trader swaps token A for token B, they increase x and decrease y. The formula ensures k remains constant — which means the price adjusts automatically. No order book, no market maker, no counterparty needed. As CoinGecko's AMM explainer notes, this model was introduced by Bancor in 2017 and popularised by Uniswap in 2018. PancakeSwap uses the same model on BNB Smart Chain.

The formula has a critical implication: the price of a token in a small pool can be moved dramatically by a single trade. This is why Piacoin's ATH of $18,071 on January 18, 2022 (noted in the project archive) was the result of a near-empty pool, not genuine market demand — a single large buy could push the price to an extreme before arbitrageurs corrected it.


How PiaDex Was Planned to Work

The Piacoin whitepaper described PiaDex as an AMM-based decentralised exchange within the PIA ecosystem. LPs would deposit PIA and other BSC tokens into pools, earn fee rewards in PIA, and governance token holders would vote on pool parameters. The model mirrors PancakeSwap's architecture with Piacoin-native governance.

PiaDex was not deployed before the project became inactive. The PIA token trades only on PancakeSwap v2 through an existing PIA/WBNB pool — the residual liquidity that remains on-chain indefinitely even after the project team stopped development. See the documentation for the full technical context of what was planned.


What Happens to a Liquidity Pool When a Project Abandons It?

This is the situation PIA holders face. The pool exists permanently on-chain — BNB Smart Chain contracts cannot be deleted. But several things change when no active team supports a token:

  • No new liquidity is added. Without team or community incentive programs, LPs withdraw their positions over time, shrinking the pool and increasing slippage on any remaining trades.
  • Trading becomes impractical. In a thin pool, even small sell orders move the price significantly. For 372 holders of PIA, meaningful exit through the AMM is economically difficult.
  • Impermanent loss compounds. As the token price declines relative to WBNB, remaining LPs face increasing impermanent loss — withdrawing their share of the pool yields fewer dollars than the value deposited.
  • The pool is not "dead." Technically, anyone can still swap PIA for WBNB or vice versa, and anyone can add or remove liquidity. The smart contract functions normally — there is simply no ecosystem supporting it.
⚠️
As MoonPay's AMM guide explains: impermanent loss does not occur if asset prices normalise before withdrawal. For a project like PIA with no active development and a −95% price decline from ICO, normalisation is unlikely. Holders considering withdrawal from the PIA/WBNB pool should factor in both impermanent loss and slippage before acting.

Key Takeaways

  • AMMs use the x × y = k constant product formula to price assets without order books
  • Liquidity providers deposit token pairs, receive LP tokens, and earn trading fees — but face impermanent loss risk
  • Pool size determines slippage — thin pools make large trades economically unfeasible
  • Abandoned project pools remain on-chain indefinitely but typically thin out as LPs withdraw
  • A DEX integration like PiaDex requires sustained development — it cannot be launched by deploying a standard BEP20 token alone

The full technical architecture that Piacoin planned for PiaDex — including liquidity pool mechanics, governance design, and swap fee structures — is documented in the whitepaper archive and documentation.