Skip to content

feat: add migrator button and action#3045

Open
AGMASO wants to merge 1 commit into
mainfrom
feat/add-stkghomigrator
Open

feat: add migrator button and action#3045
AGMASO wants to merge 1 commit into
mainfrom
feat/add-stkghomigrator

Conversation

@AGMASO

@AGMASO AGMASO commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

General Changes

[NOT MERGE UNTIL SDK PACKAGE INSTALLED]

PR description

Introduce UI support for the stkGHO migration flow.

This adds a new migrate button in StkGhoDepositRow so users with a legacy stkGHO position can start the migration directly from the stkGHO deposit row. It also updates the GHO banner logic to route users to sGHO, opening the migration modal directly when the user matches the legacy-position conditions.

Developer Notes

Add any notes here that may be helpful for reviewers.


Reviewer Checklist

Please ensure you, as the reviewer(s), have gone through this checklist to ensure that the code changes are ready to ship safely and to help mitigate any downstream issues that may occur.

  • End-to-end tests are passing without any errors
  • Code changes do not significantly increase the application bundle size
  • If there are new 3rd-party packages, they do not introduce potential security threats
  • If there are new environment variables being added, they have been added to the .env.example file as well as the pertinant .github/actions/* files
  • There are no CI changes, or they have been approved by the DevOps and Engineering team(s)

@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
interface Error Error Jun 23, 2026 2:35pm

Request Review

@AGMASO

AGMASO commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator Author

@codex

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 306b33c3d1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +55 to +57
if (mainTxState.txHash && receivedSharesRef.current === null) {
receivedSharesRef.current = previewShares?.value ?? '0';
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P3 Badge Defer the received-shares snapshot until preview data exists

If the user submits the migration while useSghoVaultPreviewDeposit is still loading, this branch runs as soon as txHash is set and permanently stores '0' because previewShares is still undefined. When the preview response arrives, the ref no longer updates, so the success view can report that the user received 0 sGHO even though the migration succeeded. Consider disabling submission until the preview is ready or only snapshotting once previewShares?.value is available.

Useful? React with 👍 / 👎.

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.

2 participants