Hashlock Markets publishes reproducible DEX volume methodology for AI agents
Hashlock Markets explains exactly how it counts DEX trading volume — recognizing only settled HTLC withdrawals, not locks or refunds — and publishes three public surfaces (Etherscan contracts, Dune queries, and a DefiLlama adapter) so any third party can independently verify the numbers.
Score breakdown
The post establishes a fully reproducible, event-level volume methodology at a time when AI trading agents consume venue metrics directly from APIs — making unverifiable volume numbers an exploitable attack surface rather than just a marketing problem.
- 01Hashlock Markets counts volume only when an HTLC `Withdraw` (EVM) or `HTLCClaimed` (Sui) event is emitted — i.e., at settlement, not at lock or quote time.
- 02Refunded HTLCs, locked-but-unclaimed HTLCs, off-chain RFQ quotes, and protocol fee transfers are all explicitly excluded from reported volume.
- 03Each cross-chain trade emits one withdraw per leg; the DefiLlama adapter sets `doublecounted: true` to prevent double-counting at the protocol level.
Baris Sozen opens by cataloguing common DEX volume inflation tactics — wash trades, double-counting both legs of a trade, and recognizing volume at quote time rather than settlement time — and argues these are especially dangerous in an agent-driven economy. An AI agent routing trades gets a number from an API, not a gut feeling; if that number cannot be independently recomputed, it functions as an attack surface for autonomous allocators rather than a reliable metric.
Refunded HTLCs, locked-but-unclaimed HTLCs, off-chain quotes, and protocol fee transfers are all deliberately excluded.
Hashlock Markets uses Hash Time-Locked Contracts (HTLCs) for cross-chain settlement, and its methodology ties reported volume strictly to settlement events: a `Withdraw` event on EVM chains or an `HTLCClaimed` event on Sui, meaning the preimage was revealed and funds actually moved. Refunded HTLCs, locked-but-unclaimed HTLCs, off-chain quotes, and protocol fee transfers are all deliberately excluded. Because each cross-chain trade emits one withdraw per leg, naively summing both legs would roughly double the reported figure; the DefiLlama adapter sets `doublecounted: true` to allow deduplication at the protocol level while keeping per-chain views accurate.
Three public verification surfaces are provided: three HTLC contracts on Ethereum mainnet (deployed 2026-04-09) readable directly from `HTLCETH_Withdraw` / `HTLCERC20_Withdraw` events; open Dune queries for ETH events, Sui events, and a unified cross-chain trades view, mirrored on GitHub; and the `dexs/hashlock-markets` adapter in DefiLlama's dimension-adapters repo. One notable technical detail: Sui's `HTLCClaimed` event does not carry amount or coin type, so the adapter joins each claim to its `HTLCLocked` event by `htlc_id` and reads notional from the lock side, counting only locks whose IDs also appear in a claim within the day window. Bitcoin HTLCs are signet-validated with a v2 adapter planned for mainnet; Sui contracts are deployed and CLI-tested but full production wiring is still in progress. The post closes by noting the venue's current volume is modest — the Sui smoke settlement was $1.00 — and frames early transparency as the right foundation for a market that will increasingly be navigated by software.
Key facts
- 01Hashlock Markets counts volume only when an HTLC `Withdraw` (EVM) or `HTLCClaimed` (Sui) event is emitted — i.e., at settlement, not at lock or quote time.
- 02Refunded HTLCs, locked-but-unclaimed HTLCs, off-chain RFQ quotes, and protocol fee transfers are all explicitly excluded from reported volume.
- 03Each cross-chain trade emits one withdraw per leg; the DefiLlama adapter sets `doublecounted: true` to prevent double-counting at the protocol level.
- 04Three Ethereum mainnet HTLC contracts (Ether, Ether+fee, ERC-20+fee) were deployed 2026-04-09 and are verified on Etherscan.
- 05Sui's `HTLCClaimed` event lacks amount and coin type, so the adapter joins claims to `HTLCLocked` events by `htlc_id` to read notional.
- 06Bitcoin HTLCs are signet-validated; a v2 adapter for mainnet BTC trades is planned but not yet live.
- 07The inaugural Sui smoke settlement was $1.00, visible in the public Sui events query.
Topics
Summary and scoring are generated automatically from the original article. We always link back to the publisher and never republish images or paywalled content. Last processed Jun 12, 2026 · 10:05 UTC. How this works →