Reference

Documentation

Technical reference for the Glasspad token factory.

MEV Protection

Glasspad applies three layers of MEV protection that work together to limit value extraction at launch.

Sniper auctions

Rather than leaving the first trades open to front-running, Glasspad runs an on-chain auction. Snipers bid by paying higher gas, and the auction captures this value for the pool instead of letting it pass to block builders.

  • Configurable delay between deployment and first auction
  • Gas peg mechanism tracks auction rounds per pool
  • Auction proceeds split between factory protocol fees and FeeLocker rewards

Descending fee curves

Fees start very high immediately after launch (up to an 80% MEV LP fee) and decay over time. This is designed to make sniping unprofitable in the first blocks while allowing normal trading once fees settle.

Block 0: 80% fee → Block N: normal fee (decays over configured period)

Block delay

A configurable block delay prevents all swaps for a set number of blocks after pool creation. Combined with the MEV module's 2-minute maximum delay, this creates a cooldown period during which liquidity additions are also blocked.

MEV module by chain

Base and Arc launches use GlasspadSniperAuctionV2 (the sniper-auction module above), which counts blocks. Robinhood Chain launches use GlasspadMevDescendingFees instead, because block-counting protection behaves differently on a chain where Solidity's block.number reports an L1 height rather than the chain's own; this module decays based on elapsed time rather than blocks observed. The MEV module on every chain decodes the same (startingFee, endingFee, secondsToDecay) launch configuration, so a launch is configured the same way on all three chains; only the module that applies it differs.