A grid bot that grows on chain.

Plant a price range on any Montra coin. Trellis buys every dip and sells every bounce inside it, with no fee. The only key that can take the money out is built from hashes, so a quantum computer has nothing to break.

Fee
none
Steps
2 to 64 in your range
Owner key
Winternitz + Merkle
Fig. 1. The vine is the price, the brass wires are your grid. A leaf opens where a step bought on the way down, a terracotta flower where it sold one wire higher.

How it climbs

  1. Plant a range

    Pick a low and a high price. Trellis cuts the range into equal steps. Steps above the price start with the coin they will sell. Steps below hold HYPE, ready to buy.

  2. It buys every dip

    When the price falls to a line, the step waiting there buys. Anyone can trigger it, and only the lines you set can fill.

  3. It sells every bounce

    A step that bought sells one line higher. Every step is wider than the pool's fee both ways, so each sale clears it.

  4. The profit is kept apart

    The step keeps what it paid, ready to buy again. The rest goes to your reserve, and only your hash key can take it out.

holds coinholds HYPE

Realized+0.0000HYPE
Round trips0
Fees paid0.0000HYPE

Fig. 2. Worked by the contract's own rules on the path drawn: 7 HYPE over 7 steps of 3%, in a pool with a 1% fee.

Fig. 3. One root on chain. Under it, 1,024 one-time keys made from your 12 words (64 drawn here). Each signs one action, then it is spent.

Nothing for a quantum computer to break

Every bot wallet on Elysium is an ECDSA key. On the day a quantum computer can run Shor's algorithm, it reads that key off the public chain and empties the wallet.

A Trellis grid has no such key. Its money sits in the contract. Moving it out takes a Winternitz signature checked against a Merkle root, made of nothing but keccak hashes. The best quantum attack on a hash, Grover's search, only halves its strength, and 256 bits leave plenty.

A bot wallet
One ECDSA key holds everything. Leak it, or crack it, and the wallet is gone.
A Trellis grid
The bot is the contract, and anyone may trigger it. Withdraw, close, retune and rotate need your hash key, which any wallet can relay.

Every step must out-earn the fee

Montra pools charge a fee on each trade, from 1% to 10%, and part of it goes to the coin's creator. A round trip pays it twice. Trellis refuses a grid whose steps are too thin to clear it, and the app shows you why before you sign.

The thinnest step each pool fee allows, and what a 6% step keeps per round trip
Pool feeThinnest stepA 6% step keeps

Kept = 1.06 × (1 − fee)² − 1, per round trip, on the HYPE in the step.

Limits

It needs pokes

A contract can't wake itself. Someone has to call cross when the price touches a line. Keep the app open with "keep it growing" on, set a small tip for keepers, or both. Fills happen at the price when the call lands, not exactly on the line.

A trend out of the range loses

If the price runs above your range, the grid ends up all in HYPE and misses the rest of the run. If it falls below, the grid ends up holding the coin all the way down. A grid earns in a range, not in a trend.

Fees eat thin grids

Each round trip pays the pool's fee twice, plus price impact on thin pools. The contract refuses steps that can't clear the fee, but a wide step can still sit for days without a fill.

Your words are the key

Lose the 12 words and nobody can move the money out, us included. Each one-time key signs once. Never sign from an old backup of this browser, and rotate before the 1,024 keys run out.

Slippage and launch windows

Each swap must land within your slippage limit of the pool's mid price, or the cross fails and waits. Buys skip Montra's anti-snipe window and any time the pool's fee is too high for your step.

Not audited

The contract is tested against Montra's real router on a fork of Elysium, but nobody has audited it. Start small.