Conversation
Primarily to fix bigint serialization issue jestjs/jest#11617
Only the pool manager is subscribed and sends the filtered logs to the corresponding pools.
|
There's one failing test for Arbitrum: but the calculated |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| token0 | ||
| token1 | ||
| } | ||
| }`; |
There was a problem hiding this comment.
Subgraph query lacks pagination, silently truncates pool results
High Severity
The subgraph query for poolInitializations has no first parameter. The Graph API defaults to returning at most 100 results. For an active DEX with more than 100 initialized pools, the query silently omits pools beyond this limit, causing the integration to operate with an incomplete pool set and miss potential swap routes.


This PR integrates Ekubo V3.
Changes to this integration from a technical perspective in comparison to v2:
Note
Medium Risk
Large addition of new pricing/math and event-driven pool state logic that can affect quote correctness and runtime performance, though it is mostly additive and isolated behind a new
EkuboV3dex key.Overview
Adds a full new
EkuboV3DEX integration (Mainnet + Arbitrum) including contract ABIs, network/config wiring, and a newEkuboV3exchange implementation that produces quotes and builds router calldata viaswapAllowPartialFill.Introduces an
EkuboV3PoolManagerthat bootstraps pool keys from a subgraph and then subscribes to on-chain logs to create/update/rollback pools onPoolInitializedand other events, with support for multiple pool/extension types (concentrated, stableswap/full-range, oracle, MEV-capture, TWAMM).Adds substantial new pool state/quoting + math modules (ticks, sqrt ratios, swap steps, TVL) and a comprehensive test suite (unit, integration, events, e2e) to validate quoting accuracy against on-chain router
quoteand event-driven state updates; also bumps package version and upgradesjest/@types/jestdev deps.Written by Cursor Bugbot for commit 6c9d387. This will update automatically on new commits. Configure here.