-
Notifications
You must be signed in to change notification settings - Fork 4
Stake fix #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stake fix #39
Conversation
Signed-off-by: MikeDiam <info@mdiamond.ru>
Signed-off-by: MikeDiam <info@mdiamond.ru>
Signed-off-by: MikeDiam <info@mdiamond.ru>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this 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
depositTokenfor both buy and sell tokens instead ofmintToken - Added filtering to exclude
mintTokenfrom 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.
No description provided.