Repository navigation
Fix resolve pool ref by mint - #2423
Open
agusaldasoro wants to merge 3 commits into
Open
agusaldasoro wants to merge 3 commits into
agusaldasoro wants to merge 3 commits into
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Critical unresolved issues can misassociate migrated pools and resolve them to an unregistered Solana adapter version, causing incorrect references or operation failure.
2 open issues
What changed in this PR
Updates Solana token-pool reference resolution to use both the owning program and decoded mint, allowing shared programs to select the appropriate pool reference across token versions.
Changes:
- Decode and validate the mint from pool configuration accounts.
- Select token-specific migrated refs or fall back to the latest 1.x ref.
- Add resolver tests and document intentional test-only signer shuffling.
| File | Description |
|---|---|
| chains/solana/utils/ccip/ccip_transactions.go | Documents that randomized signer selection is intentional and non-security-sensitive test behavior. |
| chains/solana/deployment/v1_6_0/sequences/tokens.go | Implements pool configuration mint decoding, PDA validation, and mint-aware shared-program pool reference selection. |
| chains/solana/deployment/v1_6_0/sequences/resolve_pool_ref_test.go | Adds tests covering token-specific, legacy, program-only, unknown-reference, and pool configuration mint-resolution behavior. |
Review effort: Lite
agusaldasoro
marked this pull request as ready for review
November 24, 2026 21:54
|
This branch has not been deployed
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.

What
When the Solana 1.6 resolver looks up a token pool's ref, it now uses the mint as well as the program address. If the token has been migrated to 2.0, it picks that token's ref; otherwise it picks the latest 1.x ref for the program.
Why
A program shared by many pools has several refs at the same address (one per qualifier and version), so looking up by address alone fails with expected to find exactly 1 ref ... found 4. That error is blocking changes to tokens on the shared program, such as the CCIP-BnM finality update.