# MEV Bot vs a Decaying Launch Fee: The Sniper Math

An MEV bot that snipes a token launch buys in the first blocks after liquidity appears and sells into the buyers who follow. A decaying launch fee makes the first blocks the most expensive: on $GOURDES, the main pool fee starts at 20% and falls linearly to 0.3% over the first 60 seconds, and the fee goes to the locked pool rather than to the sniper. A buy at second 0 needs the price to rise about 25.4% before a sale at 0.3% breaks even, while a buy after second 60 needs about 0.6%. $GOURDES also closes the other common launch front-runs: pool initialization, side-pool pricing, mining solutions and staking harvests.

## Key facts

- $GOURDES has a hard cap of 1,000,000,000 coins, counted across all chains.
- $GOURDES has Base as its home chain.
- $GOURDES launches on 13 EVM chains plus Solana.
- $GOURDES bridges as a LayerZero v2 OFT: coins are burned on the source chain and minted on the destination chain.
- Half of the $GOURDES supply goes into locked pools at launch; the other half can only be created by proof-of-work mining on Base.
- The main $GOURDES pool on each EVM chain charges a fee that starts at 20% and falls to 0.3% over the first 60 seconds after launch.
- $GOURDES contract addresses are published on https://gourdes.finance and in https://gourdes.finance/tokenlist.json.
- The $GOURDES Solana pool has no launch fee schedule; it charges a flat 0.05%.

## What does a sniper or MEV bot do at a token launch?

A sniper bot is a program that watches for a new pool and buys in the same block or the next few blocks, before most traders can react. An MEV bot is the broader category: a program that profits from transaction ordering, including sniping, sandwiching and back-running. At a launch, a sniper's edge comes from being first at the opening price and selling to later buyers at a higher one.

## How does the $GOURDES decaying fee work?

The $GOURDES decaying fee is computed by the `LaunchHook` contract on every swap in the main pool. `beforeSwap` returns the value of `_feeAt` with Uniswap v4's `OVERRIDE_FEE_FLAG`, so that fee replaces the pool's stored fee for that swap.

`fee = snipe - (snipe - base) * elapsed / window`

With the deploy settings `snipe = 200,000` (20%), `base = 3,000` (0.3%) and `window = 60` seconds, measured from that chain's launch time using `block.timestamp`. Uniswap v4 fees are in hundredths of a basis point, so 1,000,000 equals 100%. The fee is charged on buys and sells alike, and every swap in the same block pays the same fee because they share one timestamp.

## What price move does a launch sniper need to break even?

A launch sniper who buys at second t and later sells at the steady 0.3% fee breaks even when the price has risen by `1 / ((1 - fee_t) * (1 - 0.003)) - 1`, before price impact and gas.

| Buy at second | Main pool fee | Price rise needed to break even |
|---|---|---|
| 0 | 20% | 25.4% |
| 15 | 15.075% | 18.1% |
| 30 | 10.15% | 11.6% |
| 45 | 5.225% | 5.8% |
| 59 | 0.6284% | 0.9% |
| 60 or later | 0.3% | 0.6% |

The figures follow from the integer arithmetic in `_feeAt`. A sniper selling inside the window also pays the elevated fee on the sale, which raises the break-even further.

## Who receives the launch fee?

The launch fee is an LP fee, so it accrues to the main pool's single locked liquidity position, which the `LaunchHook` owns. When fees are collected, 30% goes to the protocol and 70% goes to that chain's `GourdesStaking` contract, where the native-coin part streams to stakers over 7 days and the $GOURDES part is burned. A sniper paying 20% is paying the stakers and the burn, not a validator or a searcher.

## Does the creator's launch buy dodge the fee?

The creator's launch buy pays the 0.3% base fee, not 20%. Uniswap v4 does not call a hook when the hook itself is the swapper (the `noSelfCall` rule), so the buy placed inside the launch transaction pays the pool's stored fee, which `_initAndBuy` sets to the base fee. The buy is limited by contract to one third of the chain's main pool, and by the deploy script to 5% of total supply across all chains. Every swap after the launch transaction pays the decaying fee.

## Can a bot front-run the $GOURDES pool creation?

No. A bot cannot front-run the $GOURDES main pool by creating it first. Uniswap v4 lets anyone initialize a pool for any key, but the `LaunchHook`'s `beforeInitialize` reverts with `OnlyLauncher` for every caller other than the hook itself. Outside liquidity is also rejected: `beforeAddLiquidity` reverts with `LiquidityLocked`, so a bot cannot add just-in-time liquidity to capture the launch fee.

## Can a bot game the side-pool opening price?

A bot can move the side-pool opening price only within a fixed band. The two hook-free side pools open through `GourdesLocker.openSidePools()`, callable by anyone once, 60 seconds after launch. The opening price is the main pool's time-weighted average tick over that minute, clamped between the price recorded after the launch buy and four times that price (`PRICE_CAP_TICKS = 13,863`).

- Pumping the main pool for 60 seconds while paying the decaying fee raises the side-pool opening price by at most 4x.
- Dumping cannot push the side-pool opening price below the recorded floor.
- A bot that initializes a side pool first at a hostile price does not block the opening. The locker only ever sells $GOURDES into such a pool, at prices above the target, and places its liquidity on the dearer side of both the live price and the target.

## Can a bot copy a $GOURDES mining solution from the mempool?

No. A $GOURDES mining solution is bound to its sender. `GourdesMiner.mine(nonce)` checks `keccak256(challenge, msg.sender, nonce)` against the target, so a copied nonce sent from another address produces a different hash and fails. Only one solution is accepted per block (`OneSolutionPerBlock`), and the challenge changes after every accepted solution.

## Can a bot stake just before a fee harvest?

A bot gains almost nothing by staking just before a harvest. `GourdesStaking.harvest()` streams collected native fees linearly over 7 days, so a stake added right before a harvest earns only its share of the stream for the time it stays staked. Unstaking returns exactly the staked amount.

## What MEV remains after the launch window?

After the launch window, ordinary MEV remains. Sandwiching a main-pool swap pays 0.3% on each leg, and a side-pool swap 0.05% on each leg, so slippage settings matter as on any pool. Arbitrage between the three pools on a chain and between chains is open to anyone. The $GOURDES site's trade form exposes a maximum price-move setting, defaulting to 5%. Arbitrage between chains is covered on the [bridge page](https://gourdes.finance/bridge/).

The [home page](https://gourdes.finance/) trades on each chain, the [mining page](https://gourdes.finance/mining/) explains solutions, the [staking page](https://gourdes.finance/staking/) explains the 7-day stream and the [about page](https://gourdes.finance/about/) has the supply split.

## Questions and answers

**What is a decaying launch fee?**
A decaying launch fee is a swap fee that starts high when trading opens and falls to a normal level over a fixed time. On $GOURDES it falls from 20% to 0.3% over 60 seconds.

**How much does a $GOURDES sniper pay at second 0?**
A 20% fee on the buy. The price must rise about 25.4% before selling at 0.3% breaks even, before impact and gas.

**Where does the $GOURDES launch fee go?**
To the locked main-pool position: 30% to the protocol, 70% to that chain's stakers, with the $GOURDES part burned.

**Can bots add liquidity to the $GOURDES main pool?**
No. The hook reverts every outside liquidity add with `LiquidityLocked`.

**Does the decaying fee apply on Solana?**
No. The Solana pool on Raydium charges a flat 0.05% from the start.

**Can someone steal a $GOURDES mining solution from the mempool?**
No. The solution hash includes the sender's address, so a copied nonce fails for any other sender.
