Skip to content

allbridge-core: track bridge contracts instead of liquidity pools - #506

Open
YaroslavNekryach wants to merge 1 commit into
DefiLlama:masterfrom
allbridge-io:core-cctp-v2
Open

allbridge-core: track bridge contracts instead of liquidity pools#506
YaroslavNekryach wants to merge 1 commit into
DefiLlama:masterfrom
allbridge-io:core-cctp-v2

Conversation

@YaroslavNekryach

@YaroslavNekryach YaroslavNekryach commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Read Allbridge Core (https://core.allbridge.io/, https://x.com/Allbridge_io) bridge volume from the bridge contracts instead of the retired liquidity pools, and drop the pool-based analytics helper.

Why

Allbridge Core wound down its liquidity pools; the adapter indexed their SwappedToVUsd / SwappedFromVUsd events, which no longer happen, and fetched Solana, Sui and Stellar pool events from an analytics API that is being decommissioned. All remaining routes are burn-and-mint transfers through partner protocols (Circle CCTP v1/v2, LayerZero OFT, Circle xReserve), executed from Allbridge bridge contracts on the source chain.

Changes

  • Deposits (tokens leaving a chain): TokensSent (CCTP v1 and v2 bridges), OftTokensSent (OFT bridge) and XReserveTokensSent (xReserve bridge) events of the Allbridge contracts on the source chain. Addresses: https://api.core.allbridge.io/token-info.
  • Withdrawals (tokens arriving on a chain): counted for CCTP v2 only, where the Allbridge contract triggers the mint. The adapter anchors on the bridge's ReceivedMessageId event and takes recipient and net amount from Circle's MintAndWithdraw event in the same receipt. Other routes are delivered by the partner protocol directly to the recipient without an Allbridge contract, so they are counted on the source chain only.
  • Chains: Ethereum, Arbitrum, Avalanche, Base, Polygon, Optimism, Unichain, Tron (Tron via trongrid event logs, as before). Solana, Sui and Stellar are removed together with analyticsApi.ts; bridgeNetworkData.ts is updated accordingly.

Testing

  • npm run test allbridge-core 6000: OFT deposits found on Ethereum and Tron, values pass the type checks.
  • CCTP v2 withdrawal path verified on Ethereum blocks 25785670–25785690: two mints parsed, e.g. 0x7f9c3364b0af71fce97162f994ad6d86c84b31c81a6b44483047b13ff9e15d09 → 99.886014 USDC to 0xA8b19905a9BFB77Ce0C0EeCD95A5c5cF904Da845.
  • tsc --noEmit is clean for the adapter.

Related PRs

Allbridge Core wound down its liquidity pools; volume is now read from the
TokensSent-style events of the bridge contracts (CCTP v1/v2, OFT, xReserve)
on Ethereum, Arbitrum, Avalanche, Base, Polygon, Optimism, Unichain and Tron.
Withdrawals are counted for CCTP v2 only, where the Allbridge contract
triggers the mint. The analytics API helper for Solana/Sui/Stellar pool
events is removed with the pools.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant