Skip to content

solana/cs_token_pool : fallback to erc20 decimals for pools without getTokenDecimals#21698

Merged
0xsuryansh merged 1 commit intodevelopfrom
0xsuryansh/add-support-to-pools-without-getTokenDecimals
Apr 27, 2026
Merged

solana/cs_token_pool : fallback to erc20 decimals for pools without getTokenDecimals#21698
0xsuryansh merged 1 commit intodevelopfrom
0xsuryansh/add-support-to-pools-without-getTokenDecimals

Conversation

@0xsuryansh
Copy link
Copy Markdown
Member

No description provided.

@github-actions
Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

@trunk-io
Copy link
Copy Markdown

trunk-io Bot commented Mar 25, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@0xsuryansh 0xsuryansh marked this pull request as ready for review March 25, 2026 17:19
@0xsuryansh 0xsuryansh requested a review from a team as a code owner March 25, 2026 17:19
Copilot AI review requested due to automatic review settings March 25, 2026 17:19
@0xsuryansh 0xsuryansh requested review from a team as code owners March 25, 2026 17:19
@cl-sonarqube-production
Copy link
Copy Markdown

@0xsuryansh 0xsuryansh changed the title fallback to erc20 decimals for pools without getTokenDecimals solana/cs_token_poo : lfallback to erc20 decimals for pools without getTokenDecimals Mar 25, 2026
@0xsuryansh 0xsuryansh changed the title solana/cs_token_poo : lfallback to erc20 decimals for pools without getTokenDecimals solana/cs_token_pool : fallback to erc20 decimals for pools without getTokenDecimals Mar 25, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Risk Rating: MEDIUM

This PR updates the Solana v0.1.1 token-pool changeset logic to determine EVM token decimals more robustly by falling back to querying the underlying ERC20 token when the pool’s getTokenDecimals call fails.

Changes:

  • Introduces an ERC20-based fallback for fetching decimals when evmTokenPool.GetTokenDecimals(...) errors.
  • Reuses a single bind.CallOpts instance for the EVM calls within getOnChainEVMPoolConfig.
  • Adds an ERC20 wrapper dependency to support the fallback decimals query.

Comment thread deployment/ccip/changeset/solana_v0_1_1/cs_token_pool.go
Comment thread deployment/ccip/changeset/solana_v0_1_1/cs_token_pool.go
Comment thread deployment/ccip/changeset/solana_v0_1_1/cs_token_pool.go
@0xsuryansh 0xsuryansh enabled auto-merge April 27, 2026 21:31
@0xsuryansh 0xsuryansh added this pull request to the merge queue Apr 27, 2026
Merged via the queue into develop with commit 5ef3c60 Apr 27, 2026
214 checks passed
@0xsuryansh 0xsuryansh deleted the 0xsuryansh/add-support-to-pools-without-getTokenDecimals branch April 27, 2026 21:57
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.

4 participants