https://github.com/chmln/solana-hybrid-exchange
https://github.com/chmln/solana-hybrid-exchange
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/chmln/solana-hybrid-exchange
- Owner: chmln
- Created: 2026-05-11T19:26:50.000Z (about 1 month ago)
- Default Branch: master
- Last Pushed: 2026-05-13T00:24:57.000Z (about 1 month ago)
- Last Synced: 2026-05-13T02:27:43.725Z (about 1 month ago)
- Language: Rust
- Size: 106 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# solana-hybrid-exchange
Solana exchange with off-chain matching and on-chain settlement. The
operator runs the orderbook but can't touch user funds. Every fill
needs two user signatures verified on-chain through the Ed25519
precompile.
## How it works
Orders are signed messages, not transactions. Fills are the only
on-chain action: the operator submits Ed25519(maker), Ed25519(taker),
and settle in one tx. Vaults only move on deposit and withdraw. Settle
is a ledger edit, not a token transfer.
Token-2022 only. init_market rejects mints with TransferFeeConfig,
TransferHook, NonTransferable, PermanentDelegate, Pausable, or
MintCloseAuthority extensions.
## Build
anchor build
## Test
cargo test
LiteSVM runs in-process with the Ed25519 precompile feature on, so
tests don't need solana-test-validator.