Repository navigation
feat(perps-controller): add Lighter perps venue (initial implementation, flag-gated) #9889
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
Merged
abretonc7s
merged 69 commits into
main
from
TAT-3766-feat-spike-lighter-perps-integratio
Aug 31, 2026
Merged
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
a872f18
feat(perps): spike — investigate Lighter as second perps venue
abretonc7s 938c297
feat(perps): add experimental Lighter venue provider POC
abretonc7s 8c4257f
feat(perps): stream Lighter live data over WebSocket and extend the t…
abretonc7s c181dee
feat(perps-controller): Lighter TP/SL, margin/leverage, and history r…
abretonc7s 6b024ee
fix(perps-controller): align Lighter editOrder/TPSL results with Orde…
abretonc7s 17cf320
feat(perps-controller): enable Lighter mainnet
abretonc7s b0d6901
feat(perps-controller): Lighter HyperLiquid-parity history, routes, a…
abretonc7s a7dd45e
fix(perps-controller): review fixes for the Lighter provider
abretonc7s 36868ec
fix(perps-controller): address external review of the Lighter provider
abretonc7s ff0cb13
fix(perps-controller): close re-review gaps in the Lighter provider
abretonc7s 23ad604
fix(perps-controller): third-review round — races, sizing, and honest…
abretonc7s db20573
fix(perps-controller): cross-review round 1 — session fences, close s…
abretonc7s 6f07a4d
fix(perps-controller): cross-review round 2 — serialized signer, hone…
abretonc7s 4d105e8
fix(perps-controller): round-4 review — atomic session identity, hone…
abretonc7s 0eae5f2
fix(perps-controller): round-5 review — ownership, WS identity, consi…
abretonc7s 8e8fccd
fix(perps-controller): round-6 consolidated — leverage arity artifact…
abretonc7s 8016124
fix(perps-controller): round-7 consolidated — random uint48 client id…
abretonc7s 86489d8
fix(perps-controller): round-8 — bounded id allocation, market valida…
abretonc7s d52df7f
fix(perps-controller): round-9 — finite-positive intent and safe wire…
abretonc7s 0aed042
fix(perps-controller): round-10 — execution-price wire parity, preval…
abretonc7s f325528
fix(perps-controller): round-11 — TP/SL full preflight and create-bef…
abretonc7s 71fdba8
fix(perps-controller): round-12 — venue-input integrity boundary, ser…
abretonc7s fdac200
fix(perps-controller): round-13 — position sign contract, settlement …
abretonc7s 21a30c5
fix(perps-controller): round-13/14 — durable per-attempt TP/SL journa…
abretonc7s 1eb3357
fix(perps-controller): round-14/15 — authoritative tx-hash settlement…
abretonc7s 6b393f4
fix(perps-controller): round-16 — durable operation intent, lifecycle…
abretonc7s 59a8f76
fix(perps-controller): round-17 — journal operation identity (CAS), d…
abretonc7s f6a5e4f
fix(perps-controller): round-18 — pinned-WASM dispatch identity, dura…
abretonc7s 7cba14d
fix(perps-controller): round-19 — process-wide serialization, complet…
abretonc7s ec087f0
fix(perps-controller)!: round-20 — financial idempotency quarantine, …
abretonc7s 95aa571
fix(perps-controller)!: round-21 — quarantine persistence, selective …
abretonc7s 7c4ce55
fix(perps-controller): round-22 — single ledger mutex for all RMW, po…
abretonc7s 2f7c456
fix(perps-controller): round-23 — atomic post-dispatch ledger transit…
abretonc7s e96e2ae
fix(perps-controller): CI compatibility — regenerate messenger action…
abretonc7s 1a69c7f
fix(perps-controller): mainnet write gate, aggregated recovery surfac…
abretonc7s 23513a5
fix(perps-controller): repo-wide lint conformance for the aggregated …
abretonc7s 1e8412b
fix(perps-controller): allow mainnet signer setup for authenticated r…
abretonc7s e0a5058
fix(perps-controller): refuse mainnet key registration before any sig…
abretonc7s 3b5067b
docs(perps-controller): document the allowMainnetSignerSetup parameter
abretonc7s 061793a
test(perps-controller): deterministic Lighter WASM signer build
abretonc7s 8a7e8f2
fix(perps-controller): device-validation defects — empty-size full cl…
abretonc7s 9f92859
fix(perps-controller): venue-derived route override and binding per-m…
abretonc7s 83e3f6a
fix(perps-controller): grid-aware binding minimum order size for Ligh…
abretonc7s ad698dd
fix(perps-controller): serve venue market metadata instead of Termina…
abretonc7s 269e49f
fix(perps-controller): validate USD-derived Lighter order sizes on th…
abretonc7s b17e911
fix(perps-controller): emit full order book level contract from the L…
abretonc7s 1264fbe
fix(perps-controller): finite-guard Lighter order book and candle pay…
abretonc7s 826a408
feat(perps-controller): enable Lighter mainnet venue writes (remove i…
abretonc7s c4f48e3
test(perps-controller): add temporary Lighter e2e recipe (DO-NOT-MERG…
abretonc7s d6cd0f6
feat(perps-controller): open Lighter positions with isolated margin b…
abretonc7s bf5883b
feat(perps-controller): isolated-margin liquidation price preview for…
abretonc7s 4c097f8
fix(perps): address PR feedback
abretonc7s e38a686
fix: address CI feedback
abretonc7s 07f530f
fix: address bugbot comments
abretonc7s 95f7f5d
fix(perps): address lighter review findings
abretonc7s d60cd6e
fix(perps): address cross-review follow-ups
abretonc7s a4bddd7
chore(perps): merge main
abretonc7s d860bdf
fix(perps-controller): address Lighter review findings
abretonc7s a95b9b5
fix(perps-controller): validate Lighter market minimums
abretonc7s 521b8c6
fix(perps-controller): address Lighter review feedback
abretonc7s 61ee313
chore(perps): merge main
abretonc7s e1d609c
fix(perps-controller): address Lighter cross-review findings
abretonc7s 42d8e28
fix(perps-controller): close Lighter review gaps
abretonc7s 5c201b7
fix(perps-controller): make Lighter disconnect terminal
abretonc7s 222ab45
fix(perps-controller): fence Lighter subscriptions after disconnect
abretonc7s ed4c504
test(perps-controller): prove Lighter disconnect cache fences
abretonc7s 5e30310
fix(perps-controller): fail closed on incomplete Lighter data
abretonc7s 5c3420f
chore(perps): merge main
abretonc7s f8a378e
fix(perps-controller): enforce Lighter data integrity
abretonc7s File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.