AMM
Uniswap v2 · v3 · v4
Upsides
- Composable liquidity
- Fully on-chain
Downsides
- Only market orders — no limit orders
- Impermanent loss
- Toxic arbitrage
- Retail LPs lose money
Fully on-chain limit orders. The Uniswap killer.
Goblin solves an open problem in DeFi: a central limit order book that lives entirely on-chain — on-chain matching, on-chain settlement — with no operator and no off-chain matcher.
Three designs for trading on-chain. Only one keeps liquidity composable while matching and settling every order on-chain.
Uniswap v2 · v3 · v4
Upsides
Downsides
dYdX · 0x Exchange
Upsides
Downsides
Upsides
Downsides
None. That's the point.
Place 99 limit orders on Goblin, or open a single position on Uniswap v4. Same market, very different economics.
Demo only — each run pops a sample transaction. Both link to real testnet txs.
Benchmarks
Run both tests to reveal the results.
Goblin replaces the tree with two bitmap layers. Matching starts from the market's last position and walks the bits outward: the outer bitmap finds live price regions, the inner bitmap finds the order slot. No pointers, no rebalancing.
dashed nodes = allocated index slots holding no price data
Two more pieces make Goblin cheap to run: balances held inside the contract, and a netting step that cancels opposing deltas across markets before anything is transferred.
Balances live inside the contract, not in an ERC-20 wallet.
A fill updates a balance in place, so no token transfer leaves the contract — market making stops paying for token movement.
Trade across many markets in a single settlement.
Every fill produces a per-token delta. Goblin sums the deltas per token and applies only the net, so fills cancel out before any transfer happens.
Three fills, three markets: ETH +2 +1 = +3, USDC -6,000 +15,000 = +9,000, WBTC -0.5 -0.03 = -0.53. Only the net is applied, so the trade settles against internal balances with no ERC-20 transfers at all.
A small team building the on-chain order book that DeFi has been missing.
Technology
Systems and Stylus. Wrote an order book that fits inside the trie.
Business Development
Markets and integrations. Turns limit orders into liquidity.
Finance
Runs the books and the treasury. Keeps the goblins solvent.
Design & Marketing
Draws the interface and the goblin — then tells everyone about it.
Goblin is a fully on-chain limit order book built on Arbitrum Stylus. Composable liquidity, on-chain matching, on-chain settlement.