compile ~/compile/README.md

compile

Write your strategy, compile it into a live Uniswap v4 hook. It executes inside the pool, on every swap. Live on Robinhood Chain, where tokenized stocks live.

terminalthe $COMP pool's own strategy

  
$COMP poolreading Robinhood Chain
next buyvolatility -
beforeSwap()fee for the next buy: -

From an idea to the market

On a normal DEX the fee is the same at 3am on a quiet Sunday and in the middle of a meltdown. Here you write the rule down, and the pool runs it.

  1. 01

    Write it like you think it

    A short strategy file: conditions on volatility, the time of day, the trading session, the age of the pool, the side of the trade. One fee per rule.

  2. 02

    Compile

    The compiler checks it against the safety rules and shows exactly what it will do before anything goes live. A dangerous strategy does not compile.

  3. 03

    Publish

    The program goes into the hook market: public, permanent, forkable. The same safety check runs again on-chain, so nobody can skip the compiler.

  4. 04

    Launch a pool

    Open a Uniswap v4 pool on Robinhood Chain with your strategy id. From that block on, every swap passes through your rules.

What a strategy can never do

This is not a promise in a document. It is written into the hook's address, which Uniswap v4 reads before it calls anything.

Touch user funds

The hook has no permission to take or return tokens. It can only choose a fee, and the fee goes to the pool's liquidity providers.

Block an exit

No checkpoint on deposits or withdrawals. Removing liquidity never even calls the hook.

Change its rules

A pool is bound to one program when it opens. No owner, no setter, no upgrade. Fork it to change it.

Fees are capped at 10%, or 50% only inside a rule limited to the first 10 minutes of a pool.