-
Notifications
You must be signed in to change notification settings - Fork 0
Small fixes #16
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
Small fixes #16
Changes from all commits
a16fd33
9bf56c0
c7db809
8c465bf
2ff1d74
ef4ecb9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,8 @@ | ||
| import { createFileRoute } from "@tanstack/react-router"; | ||
| import { useEffect } from "react"; | ||
| import { TradeTerminalPage } from "@/components/trade/trade-terminal-page"; | ||
| import { buildPageHead } from "@/lib/seo"; | ||
| import { useMarketActions } from "@/stores/use-market-store"; | ||
|
|
||
| export const Route = createFileRoute("/")({ | ||
| ssr: false, | ||
|
|
@@ -12,5 +14,15 @@ export const Route = createFileRoute("/")({ | |
| path: "/", | ||
| keywords: ["trade", "orderbook", "chart", "perpetuals", "spot"], | ||
| }), | ||
| component: TradeTerminalPage, | ||
| component: IndexPage, | ||
| }); | ||
|
|
||
| function IndexPage() { | ||
| const { setSelectedMarket } = useMarketActions(); | ||
|
|
||
| useEffect(() => { | ||
| setSelectedMarket("all", "VOLX-USDH"); | ||
| }, [setSelectedMarket]); | ||
|
Comment on lines
+23
to
+25
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This |
||
|
|
||
| return <TradeTerminalPage />; | ||
| } | ||
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.
There is a mathematical inconsistency between the value change and the comment change. The value increased 1000x (from
1to1000), while the comment indicates a 100x increase in the fee rate (from0.001%to0.1%). If the intended fee is0.1%and the previous scale was correct, the value should be100. Please ensure the value aligns with the intended fee rate and the protocol's expected units.