Skip to content

fix token import#2033

Open
tt-cll wants to merge 5 commits intomainfrom
tt/import
Open

fix token import#2033
tt-cll wants to merge 5 commits intomainfrom
tt/import

Conversation

@tt-cll
Copy link
Copy Markdown
Collaborator

@tt-cll tt-cll commented May 4, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 4, 2026 17:08
@tt-cll tt-cll requested review from a team as code owners May 4, 2026 17:08
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

👋 tt-cll, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

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

Fixes legacy token-pool configuration import during 2.0.0 EVM upgrade flows by carrying the source pool version through import and rebasing imported inbound rate limits when they came from pre-1.6.1 pools.

Changes:

  • Tracks the imported legacy pool version alongside imported rate-limit and remote-pool config.
  • Rebases imported inbound rate limits from remote/source decimals to local/destination decimals for legacy (<1.6.1) EVM pools before applying them to 2.0.0 pools.
  • Adds unit tests for the new inbound rate-limit normalization helper.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
chains/evm/deployment/v2_0_0/sequences/tokens/configure_token_pool_for_remote_chain.go Adds legacy-version-aware import handling and decimal rebasing for imported inbound rate limits.
chains/evm/deployment/v2_0_0/sequences/tokens/configure_token_pool_for_remote_chain_internal_test.go Adds helper-level tests for inbound rate-limit normalization behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tt-cll tt-cll enabled auto-merge May 4, 2026 17:24
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

Metric tt/import main
Coverage 70.1% 69.9%

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.

3 participants