Components
OorkaHook
OorkaHook
One contract that is simultaneously the v4 hook, the vault (an ERC20 share token called
oLP) and the curator registry. It owns every position it creates in the PoolManager and separates them by salt. 1,028 lines, 24,358 bytes of runtime code, just under the 24,576-byte limit.v4 PoolManager
v4 PoolManager
The standard Uniswap v4 singleton. Oorka relies on three things it already provides: salted positions,
getFeeGrowthInside for any initialised range (through StateLibrary), and the unlock callback for atomic liquidity changes.OorkaReactive
OorkaReactive
Lives on Reactive Lasna. Subscribes to a built-in CRON topic and, every N ticks, asks the network to call the keeper on Unichain.
OorkaKeeper
OorkaKeeper
Lives on Unichain next to the hook. Accepts calls only from the Reactive callback proxy, and only when the network-injected sender is our own reactive contract. Settles the epoch if it has ended.
Web app
Web app
React + viem on GitHub Pages. Landing page, Arena, Vault, Curate, Swap and Docs. Reads history from the Blockscout logs API and new blocks over RPC.
Demo market
Demo market
A scheduled GitHub Action that trades the public pool so the competition has real fee growth to score. It never settles.
Hook permissions
The hook address is mined so its low bits encode exactly these flags:
The hook never changes swap pricing. Traders pay the pool’s normal 0.30% fee.
Positions inside the PoolManager
Unlock actions
Every liquidity change goes throughpoolManager.unlock and comes back to unlockCallback with one of four actions: