feat(BACK-2161): refactor AlegraIntegral integration to use event based #1150
Merged
Ivan011001 merged 49 commits intomasterfrom Mar 5, 2026
Merged
feat(BACK-2161): refactor AlegraIntegral integration to use event based #1150Ivan011001 merged 49 commits intomasterfrom
Ivan011001 merged 49 commits intomasterfrom
Conversation
added 20 commits
February 24, 2026 13:40
KanievskyiDanylo
approved these changes
Mar 4, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
0xNazarii
approved these changes
Mar 4, 2026
…eat/back-2161-algebra-integral-event-based
commit 8e667ad Author: Ivan Nedokhodiuk <nedokhodiukivan@gmail.com> Date: Tue Mar 3 21:14:31 2026 +0200 chore(test): update tokens storage slots commit 171efa5 Author: Ivan Nedokhodiuk <nedokhodiukivan@gmail.com> Date: Tue Mar 3 21:14:11 2026 +0200 fix(DackieSwapV3): use correct subgraph on Base commit 6f7e958 Author: Ivan Nedokhodiuk <nedokhodiukivan@gmail.com> Date: Tue Mar 3 20:24:04 2026 +0200 fix(SushiSwapV3): use correct subgraph on Base commit 4f076dd Author: Ivan Nedokhodiuk <nedokhodiukivan@gmail.com> Date: Mon Mar 2 21:19:39 2026 +0200 fix(UniswapV3): include `liquidityField` in the config
commit 3a95f92 Author: Ivan Nedokhodiuk <nedokhodiukivan@gmail.com> Date: Tue Mar 3 13:20:14 2026 +0200 Revert "temp(log): add plain firm data logging" This reverts commit 3e434b0. commit afc9d26 Author: Ivan Nedokhodiuk <nedokhodiukivan@gmail.com> Date: Tue Mar 3 08:49:56 2026 +0200 4.8.18-alphalab-mainnet.1 commit 523de89 Author: Ivan Nedokhodiuk <nedokhodiukivan@gmail.com> Date: Tue Mar 3 08:49:40 2026 +0200 temp(log): add formatted firm data logging commit 42b6833 Author: Ivan Nedokhodiuk <nedokhodiukivan@gmail.com> Date: Mon Mar 2 13:01:14 2026 +0200 4.8.18-alphalab-mainnet.0 commit 3e434b0 Author: Ivan Nedokhodiuk <nedokhodiukivan@gmail.com> Date: Mon Mar 2 12:58:45 2026 +0200 temp(log): add plain firm data logging commit a418cc2 Author: Ivan Nedokhodiuk <nedokhodiukivan@gmail.com> Date: Mon Mar 2 12:58:18 2026 +0200 test(e2e): adjust testing for new types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Medium Risk
Touches core pricing/state-tracking logic for AlgebraIntegral by introducing event-driven pool state and periodic fee updates, which could affect quote correctness or stability if event decoding/state sync is off. Changes are bounded to specific DEX integrations but include new on-chain multicalls and caching behavior.
Overview
Refactors
AlgebraIntegralpricing to prefer event-subscribed pool state (via newAlgebraIntegralEventPoolusingAlgebraIntegralStateMulticall) and only fallback to RPC quoter when a pool can’t be initialized or yields invalid outputs; also adds slave-side periodic fee polling to keep dynamic fees current.Updates
AlgebraIntegralFactoryto be a real stateful subscriber returning aPool[]state (instead of maintaining an internal list) and addsstateMulticalladdresses + new ABIs for Integral/BlackholeCL pools and multicall. Tests are reworked to cover event-driven pricing (new events test suite, integration/e2e updates for QuickSwapV4 Base + BlackholeCL Avalanche + Supernova Mainnet), and a few unrelated maintenance tweaks land (optionalGENERIC_RFQ_PATH_TO_OVERRIDE, removeDackieSwapV3config, update UniswapV3 Base subgraph, and hardenExecutorBytecodeBuilder.findAmountPosInCalldatato search ABI word boundaries).Written by Cursor Bugbot for commit 997d4bf. This will update automatically on new commits. Configure here.