Skip to content

Market Guard

By HookrNot on Elysium yet

Swaps that stray from a live Chainlink price pay the pool's LPs a surcharge.

How it behaves

Swaps that push the price outside a band around Chainlink's price pay the pool's LPs a surcharge, and a trade back toward it pays nothing extra.

What you set

Fixed with the pool at launch.

Mode
Surcharge, the only mode offered
Band
10%0.5% to 50%
Ramp
10%0.5% to 50%
Full surcharge
1%0.0001% to 5%

What you take on

  • The band, ramp, surcharge and price age limit are frozen at launch.
  • Market Guard's circuit breaker, which refuses a swap leaving the band, is not offered yet.
  • Market Guard works only on pairs a live price feed covers, named in its notes, and only for tokens that already exist, since new tokens and HOOKR have no price feed.
  • It reads Chainlink's ETH/USD price and counts 1 USDG as $1, so if USDG loses its peg, ordinary trades can pay the surcharge.
  • Past the band, the surcharge climbs over the ramp to its full rate.

Tradeoff

  • If Chainlink's price is late or missing, nobody can buy or sell in this pool until it updates, while adding and removing liquidity still work.

Can't be combined with

  • Tax + Conversion, Buy/Sell Block, Agent gate, Market-hours fee, Managed fee, Zap Relay source, Zap Relay target, Swap Reward Mint or Usage feeA pool runs only one of these; a Multi-pool launch can put another on a pool of its own.
  • Dynamic fees at their highest ceilingWith this block on, Dynamic fees can't reach their highest ceiling, since part of the pool's fee limit is kept free for this block's rates even if yours are lower.