Skip to content

v2.0.0-alpha.14

Pre-release
Pre-release

Choose a tag to compare

@outsmartchad outsmartchad released this 23 Feb 07:05
· 24 commits to agent-trading-infra since this release

Fix: Mainnet byte offsets for all 8 DEX decoders

Changes

  • DAMM v2: Moved to vault-based pricing (offsets 168/200/232/264), removed unreliable sqrtPrice decode; decimals fetched from mint accounts at startup
  • DBC: Moved to SDK-based pricing via adapter.getPrice(), resolves bonding curve price calculation that raw sqrtPrice offsets couldn't handle
  • Added null check for adapter.getPrice (optional on IDexAdapter interface)

Verified on Mainnet

All 8 DEX decoders tested and producing correct prices:

DEX Price Status
Raydium CPMM 0.000448 SOL ✅
Raydium AMM v4 0.00204 SOL ✅
Raydium CLMM 131.89 (RAY/SOL) ✅
Raydium LaunchLab 0.0000041 ✅
PumpSwap 0.0000871 SOL ✅
Meteora DAMM v2 0.00201 SOL ✅
Meteora DBC 3.62e-8 SOL (SDK) ✅
Meteora DLMM 0.00247 SOL (SDK) ✅