Reference

Documentation

Technical reference for the Glasspad token factory.

LP Locker

The GlasspadLpLockerFeeConversion automatically locks LP positions and handles fee distribution.

Features

  • LP tokens (ERC-721 positions) are locked permanently, so the deployer cannot withdraw liquidity (commonly called a rug pull)
  • Supports up to 7 LP positions per token and 7 reward participants
  • Fees are collected and converted to WETH via Universal Router swaps
  • Reward recipients and admins can be updated by the reward admin
  • Fee preference per recipient (receive in WETH or the pool's paired token)

Fee collection

Anyone can trigger fee collection. The locker decreases liquidity to collect fees, swaps them via Universal Router, and deposits the proceeds into the FeeLocker for the reward recipients.