Skip to content

Conversation

@mike-diamond
Copy link
Contributor

No description provided.

Signed-off-by: MikeDiam <info@mdiamond.ru>
Signed-off-by: MikeDiam <info@mdiamond.ru>
Signed-off-by: MikeDiam <info@mdiamond.ru>
Copilot AI review requested due to automatic review settings January 20, 2026 13:01
@vercel
Copy link

vercel bot commented Jan 20, 2026

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

Project Deployment Review Updated (UTC)
vault-interface Ready Ready Preview, Comment Jan 20, 2026 1:02pm

Request Review

Copy link

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

This PR fixes issues in the staking functionality by correcting token initialization and filtering logic.

Changes:

  • Fixed redundant condition in the swap approval skip logic
  • Corrected token initialization to use depositToken for both buy and sell tokens instead of mintToken
  • Added filtering to exclude mintToken from the stake input token dropdown

Reviewed changes

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

File Description
src/views/SwapView/util/vault/actions/useStake/useStakeSubmit/index.ts Added redundant condition check for swapTokens.sellToken.address
src/views/SwapView/util/vault/actions/useStake/index.ts Fixed token initialization to use depositToken consistently and disabled automatic list filtering
src/views/SwapView/content/Stake/StakeInput/StakeInput.tsx Added manual filtering to remove mintToken from the dropdown list
src/hooks/swap/useTokens.ts Added filterList parameter to allow disabling automatic token filtering

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

@mike-diamond mike-diamond merged commit 679b6bb into main Jan 20, 2026
3 checks passed
@mike-diamond mike-diamond deleted the stake-fix branch January 20, 2026 13:13
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