QuantVM
Composable DeFi Bytecode — 59 opcodes on Solana
Opcode Reference
| Opcode | Hex | Description |
| SWAP | 01 | Swap on pool |
| SPLIT | 02 | Split into N legs |
| MERGE | 03 | Sum leg outputs |
| SKIP_LT | 04 | Skip if acc < thr |
| SKIP_GT | 05 | Skip if acc > thr |
| SET | 20 | acc = value |
| STORE | 10 | Save to register |
| LOAD | 11 | Load from register |
| PCT | 23 | acc × bps / 10000 |
| ASSERT_GT | 40 | Error if acc ≤ thr |
| F_BORROW | 90 | Flash borrow |
| F_REPAY | 91 | Flash repay + fee |
| JUMP | C0 | Unconditional jump |
| CALL | C7 | Sub-strategy call |
| HALT | FF | Stop execution |
| Opcode | Hex | Description |
| ADAPT_SPLIT | C3 | Auto-adjust by depth |
| AUTO_DIR | C4 | Optimal swap direction |
| PRICE_GUARD | C5 | Stale price protection |
| SCALE_DEPTH | C6 | Anti-whale sizing |
| ADD_LIQ | 50 | Add liquidity |
| REM_LIQ | 52 | Remove liquidity |
| FARM_STAKE | 60 | Stake LP |
| FARM_CLAIM | 62 | Claim rewards |
| VP_BUY | 70 | Bonding curve buy |
| VP_SELL | 71 | Bonding curve sell |
| VE_STAKE | 80 | Lock tokens |
| WRAP | B0 | SOL → wSOL |
| EMIT | F0 | Log event |
| RET | C8 | Return from CALL |
| NOP | 07 | No operation |
30 more opcodes in full spec
CLI
aex strategy sim --preset adaptive --trace # simulate locally
aex strategy sweep --preset 2hop # amount sweep
aex strategy compete --a adaptive --b 2hop # head-to-head
aex strategy evolve --gens 100 --pop 64 # genetic algorithm
aex strategy fuzz --adversarial --iters 10000 # CU maximization
aex strategy register --preset adaptive # publish on-chain
aex strategy browse --sort profit # leaderboard
API
POST /v1/strategy/nl # English → bytecode (Haiku)
POST /v1/strategy/simulate # bytecode → output + CU
GET /v1/strategy/browse # on-chain registry
GET /v1/strategy/leaderboard # global P/L rankings
POST /v1/strategy/report # submit autopilot results