Skip to content

Conversation

@rhlsthrm
Copy link
Contributor

Test notes:

  • "show me my hyperliquid positions"
  • See that charts show next to positions
  • "Create perps order" and see it works and not instantly canceled

…ndling and improve error messaging

- Removed the agentWalletClientHL state and related references.
- Updated the approveAgentIfNeeded function to create and return a new agent client on demand.
- Simplified error handling for wallet connection checks.
- Adjusted order placement logic to utilize the newly approved agent client.
- Enhanced placeholder text for input fields for better user guidance.
…and enhance balance calculations

- Introduced new types for margin and cross margin summaries.
- Updated props to accept account state instead of positions.
- Extracted positions and margin summary from account state for easier access.
- Calculated total balance and available balance based on margin summary.
- Adjusted displayed values to reflect unrealized PnL and added total balance information.
…d component

- Introduced state management for the selected symbol to display the TradingView chart.
- Implemented useEffect to set the initial symbol based on loaded positions.
- Created a dropdown for unique symbols to allow users to select different positions for charting.
- Enhanced the layout to include the TradingView widget and symbol selector within the card structure.
@rhlsthrm rhlsthrm requested a review from Penguionnaire April 18, 2025 13:49
@rhlsthrm rhlsthrm linked an issue Apr 18, 2025 that may be closed by this pull request
@vercel
Copy link

vercel bot commented Apr 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
terminal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 21, 2025 10:07am

- Removed unused Address import from viem.
- Cleaned up the code by removing unnecessary blank lines for improved readability.
…ng and error messaging

- Replaced agentWalletClientHL with walletClientHL for clarity.
- Updated handleCancelOrder to use the newly approved agent client.
- Enhanced error handling for agent client retrieval and order cancellation.
- Removed unnecessary checks related to agentWalletClientHL.
…ity and maintainability

- Cleaned up import statements by consolidating related imports.
- Removed unnecessary blank lines to improve overall code structure.
- Ensured consistent formatting by adding a newline at the end of the file.
- Upgraded @ai-sdk/google from 1.2.11 to 1.2.12.
- Updated various @radix-ui/react components to their latest versions for improved functionality and performance.
- Incremented versions for lucide-react, react-hook-form, vitest, and pnpm package manager for better compatibility and features.
@rhlsthrm rhlsthrm merged commit 2c61742 into develop Apr 21, 2025
2 checks passed
@rhlsthrm rhlsthrm deleted the 226-enhance-hyperliquid-position-creation-with-wallet-checks-and-bridging-guidance branch April 21, 2025 10:42
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.

Hyperliquid - show chart of token when prompted to show positions

3 participants