fix: support upgraded Hyperliquid TWAP orders(OK-59156) - #12849
Conversation
|
@codex review |
|
@codex security review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1bd948b2d7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Security review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
已处理 automated review 的两个 blocking issue,并随 SDK 升级提交
另外已补齐原 PR 缺失的真实 SDK 升级: 验证:4 suites / 49 tests、TypeScript、commit profile、pristine patch check、Android background Metro bundle、7 天 TWAP 签名烟测均通过。该 review 是 issue comment,GitHub 没有单独的 resolve 状态;对应问题已经由本提交关闭。 |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
CI follow-up:
Latest HEAD |
Automated code review found blocking issuesReviewed commit Review summaryThis PR upgrades the Hyperliquid integration boundary to SDK 0.33.3 and threads the expanded TWAP contract through shared validation helpers, background exchange/subscription services, foreground Jotai state, and Perps UI surfaces. It adds trigger/stop-aware TWAP configuration, seven-day durations, and runtime-status display while keeping What needs attention: Confirm how positive spot balances without token identifiers should flow through background valuation, cached display totals, and degraded-state UX instead of disappearing. Issues to address
Validation gaps
|
originalix
left a comment
There was a problem hiding this comment.
Automated code review found blocking issues
Reviewed commit 96405115bf62.
- P1 · TWAP confirmation still shows pre-normalized trigger/stop prices
- P1 · TWAP submit guards still ignore the new mark-price fallback
|
已处理 automated review 的两个 P1,随 commit
顺带:hook 底层用新增的 验证: |
originalix
left a comment
There was a problem hiding this comment.
Automated code review found blocking issues
Reviewed commit 2bc551da512a.
- P1 · Outcome spot balances disappear from UI and cached totals
- P2 · Plain TWAP orders now always send the optional
detailswrapper
|
针对 automated review 最新一轮(reviewed P2(plain TWAP 恒发 P1(outcome spot 余额被过滤)— 说明后维持现状,建议 follow-up。 分析如下:
另外修复了 CI lint 的两个格式错误( |
originalix
left a comment
There was a problem hiding this comment.
Automated code review found blocking issues
Reviewed commit b6becfd4a04a.
- P1 · Outcome spot balances disappear from live state and cached totals
|
回应 automated review 对 产品结论不变——热更分支不引入 outcome 代币展示(无价格源、无 UI 语义、 针对本轮指出的"WS 路径完全静默",随 commit 已推送最小改善: |
originalix
left a comment
There was a problem hiding this comment.
Automated code review found blocking issues
Reviewed commit 764fbe781ba4.
- P1 · Outcome spot balances disappear from live state and cached totals
originalix
left a comment
There was a problem hiding this comment.
Automated code review found blocking issues
Reviewed commit b11d55b4c6bf.
- P1 · Outcome spot balances disappear from live state and cached totals
originalix
left a comment
There was a problem hiding this comment.
Automated code review found blocking issues
Reviewed commit a32f28fc4f50.
- P1 · Outcome spot balances disappear from live state and cached totals
|
@cursoragent review |


OK-59156
Summary
@nktkas/hyperliquidfrom 0.32.2 to 0.33.3 on therelease/v6.5.0hot-update branch.Intent & Context
OK-59156 needs to ship through the 6.5.0 hot-update path instead of waiting for the next normal release. SDK 0.33.3 is the first published version that provides the required TWAP
details, state fields, and history statuses.SDK Upgrade
@nktkas/hyperliquidfrom 0.32.2 to 0.33.3 and update its transitive dependencies.@noble/hashes ^2.2.0dependency to the reviewed 2.2.0 release so the hot update does not float to a package below the seven-day supply-chain threshold.TWAP Changes
waitingForTrigger/stopped; pending orders do not advance elapsed time or progress before activation.Risk Assessment
Test Plan
yarn install --immutable; verify the 0.33.3 patch applies.yarn agent:check --profile commit.yarn lintsuite.