scematica-arb
Cross-DEX arbitrage engine for Scematica — graph search across Raydium, Orca, Meteora, and Jupiter for profitable cycles, with atomic profit-or-revert execution.
What it does
- Builds a live pool graph and searches for arbitrage cycles (
graph.rs,searcher.rs,opportunity.rs). - Sizes and executes the best path atomically (
executor.rs), optionally gated/scored by thescematica-ailayer. - Multi-DEX swap instructions come from
scematica-executor.
Program-less by default (no on-chain deploy)
Arbitrage runs with no custom Solana program. Solana transactions are atomic, so the
profit guarantee comes for free: the final hop's min_out is set to
input + profit_floor, and any shortfall fails that swap and reverts the whole
transaction — your capital is untouched.
SWAP_PROGRAM_ID=<id> cargo ARB_PROGRAM_LESS=1|
Program-less mode is for self-funded arbitrage (you hold the starting capital); a flash-loan (borrow-in-transaction) strategy needs a flash-loan protocol's program.
Install
Part of the Scematica suite. See the workspace README for the full bot (sniper, dashboard, AI, Deep Q*, x402).
License
MIT