-
Notifications
You must be signed in to change notification settings - Fork 4
Improve logic, add new swap view #24
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
base: main
Are you sure you want to change the base?
Conversation
|
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 improves the logic and adds a new swap view to replace the existing home view implementation. The changes consolidate staking, minting, burning, boosting, and other vault operations into a unified SwapView interface.
Key changes:
- Refactored context and state management for better separation of concerns
- Added new components for input/output handling and transaction management
- Improved type safety and removed deprecated functionality
Reviewed Changes
Copilot reviewed 261 out of 402 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/views/SwapView/ | New unified view for all vault operations (stake, mint, burn, boost, etc.) |
| src/store/store/vault/ | Simplified state structure by removing unused slices |
| src/views/HomeView/ | Removed old home view implementation |
| src/layouts/modals/ | Updated modal imports and transaction flow handling |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| return () => { | ||
| unboost.percentField.reset() | ||
| } | ||
| }, []) |
Copilot
AI
Sep 30, 2025
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.
The useEffect cleanup function is missing the dependency array for unboost.percentField.reset. Add unboost.percentField.reset to the dependency array to ensure the effect updates if the reset function changes.
| }, []) | |
| }, [unboost.percentField.reset]) |
Cast0001
left a comment
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.
Good job 🚀
No description provided.