SOLUTION / CRYPTO-MARKET-ANALYTICS

DEX Monitoring Tool Development

Blaron builds custom DEX monitoring tools that track pools, swaps, liquidity, and prices across decentralized exchanges and chains, reading events from the pool contracts through RPC nodes or indexers. Alerts flag liquidity removals and unusual activity, dashboards show each pool's history, and the pipeline handles chain reorganizations and node failures so the figures hold up.

Best fit: Token and protocol teams watching their own liquidity, DeFi traders and funds that need pool-level visibility across chains, liquidity providers managing positions, and research teams studying on-chain markets.

ALERT LEVEL
Threshold crossedRule fires, position untouched
Fast-moving readings become a bounded decision: the rule fires, a person still owns the position.

What we design around your workflow

Decentralized exchanges publish everything on-chain, but not in a form anyone can read at a glance. Each protocol version emits different events, prices arrive as raw reserves or fixed-point square roots, every token has its own decimals, and the newest blocks can still be rewritten. We build monitors that do this translation carefully, so an alert about a pool states what changed, by how much, and how settled the data is.

Pool discovery

Find new pools from factory and pool manager events, and keep a registry of pairs, fee tiers, hooks, and chains.

Swap and liquidity feed

Decode swaps, liquidity additions, and removals into one normalized stream with token amounts, prices, and USD values.

Price and depth tracking

Derive prices from reserves or square-root prices, and estimate how far a trade of a given size would move each pool.

Liquidity alerts

Flag large removals, sudden losses of depth, and unusual swap activity to Telegram, Discord, email, or a webhook.

Pool dashboards

Show liquidity, volume, price, and the largest liquidity providers for each pool, with history and exports.

Read each protocol version on its own terms

DEX versions record activity differently, and a monitor has to read each one correctly. A Uniswap v2 pair emits Swap with separate in and out amounts, Mint and Burn for liquidity, and Sync with the new reserves. In a v3 pool, Burn only takes liquidity out of its price range; the tokens leave later through Collect. In v4, every pool lives inside one PoolManager contract under its own pool ID, so swaps and liquidity changes are filtered by that ID instead of a contract address. Forks copy these designs, and their changes are checked rather than assumed.

  • Discovery from creation events

    Register pools from v2 PairCreated, v3 PoolCreated, and v4 Initialize events, together with the block where each appeared.

  • Two steps out in v3

    Alert on Burn, when liquidity is withdrawn from its price range, and confirm with Collect, when the tokens actually leave the pool.

  • Hooks recorded

    Store the hook contract attached to each v4 pool, since hooks run their own logic before and after swaps and liquidity changes.

Primary sources

Normalize tokens, decimals, and prices before comparing pools

Pool contracts report integers in each token's smallest unit, and tokens disagree on decimals; the ERC-20 standard even makes the decimals function optional. The monitor reads decimals once per token, stores them with the contract address, and never matches tokens by symbol, because anyone can deploy a token with a familiar name. Prices come from v2 reserves or from v3 and v4 square-root prices, scaled by both tokens' decimals, then converted to USD through a chosen reference pool. Fee-on-transfer and rebasing tokens are flagged, since their balances do not follow the usual pool arithmetic.

  • Address is identity

    Key every token by chain and contract address, and keep symbols only as display labels.

  • One pricing route

    Price each token through a defined path, such as its deepest stablecoin pool, and record which pool set the price.

  • Thin pools marked

    Label prices from pools with little liquidity, because a small trade can push them far from the wider market.

Primary sources

Alert on liquidity removals and unusual activity

A useful alert describes a change in a pool, not just a large number. Rules watch for withdrawals measured against the pool's own liquidity, sudden losses of depth near the current price, swaps with unusual price impact, and bursts of trading in pools that are normally quiet. Each alert names the pool, the amounts in tokens and USD, the addresses involved, and the transaction, and says whether its block is final. A removal is a fact worth knowing quickly; what it means is left to you, with the evidence attached.

  • Relative thresholds

    Judge each pool against its own liquidity and history, so a quiet pool and a busy one are not held to the same number.

  • The real recipient

    Show the address that received withdrawn tokens, since a v2 Burn event's sender is often the router contract rather than the provider.

  • Urgency by channel

    Push critical removals to a chat channel or webhook, and collect slower changes into scheduled digests.

Keep the data correct through reorgs and node failures

Recent blocks can be replaced, nodes fall behind, and large log queries can time out. The pipeline stores every event with its block hash and log index, so a replay never double counts, and treats blocks newer than the chain's safe or finalized head as provisional. When a subscription reports a log as removed by a reorganization, the event and any alert built on it are corrected. A second RPC provider or an indexer stands by, head blocks are compared between sources, and gaps found during backfills are fetched again rather than skipped.

  • Safe replays

    Key each event by chain, block hash, transaction, and log index, so reprocessing any range is harmless.

  • Provisional until final

    Mark alerts from recent blocks as provisional, and revise them if a reorganization drops the transaction.

  • Cross-checked sources

    Compare head blocks and event counts across providers, and switch when one falls behind.

Primary sources

  • ethereum.org: JSON-RPC APIDocuments the safe and finalized block tags and the removed field that marks logs dropped by a chain reorganization.

Realistic limits and operator controls

  • Coverage is per protocol

    Forks and new DEX designs change event formats and pool math, so each added protocol needs its own decoding and tests.

  • Shallow pools mislead

    A price from a thin pool can sit far from the wider market; the monitor labels it rather than pretending it is reliable.

  • Signals, not verdicts

    A liquidity withdrawal can be routine rebalancing or an exit. The tool shows the evidence, and judging intent stays with you.

Frequently asked questions

Which DEXs and chains can it monitor?

Uniswap and its forks on Ethereum and other EVM chains are the usual starting point, along with other AMMs whose contracts and events are documented. Solana DEXs need a different data path, which we scope separately.

Can it alert us when liquidity is pulled from our pool?

Yes. A removal triggers an alert with the amounts, the share of the pool, the receiving address, and the transaction, marked provisional until its block is final.

Can we share the alerts with our community?

Yes, through Telegram or Discord channels with access control. If alerts are sold or presented as trading signals, financial promotion or advice rules may apply in your markets, so confirm your obligations with qualified counsel first.

Can it track our token across several pools and chains?

Yes. The registry groups every pool that holds your token by chain and protocol, and the dashboard shows combined liquidity and volume beside each pool's own figures.

See what is changing in your pools

Share the tokens and pools you follow, the chains and DEXs involved, and the changes that should raise an alert. We will map the event sources, normalization, and alert rules for your pools.

Start a project