Guides

Documentation

Technical reference for the Glasspad token factory.

Fees

Every swap in a Glasspad pool generates LP fees, which accrue to you as the token's creator. No separate contract integration or manual accounting is required.

Swap feesFeeLockerYou

How to claim

Fee collection is permissionless: anyone can trigger it, so it does not depend on the creator. The LpLocker periodically collects pool fees, converts them to WETH according to your reward preferences, and deposits them into the FeeLocker, where you can withdraw them at any time. The simplest way to claim is your Portfolio page, which performs the same claim from a single button.

What you configure at launch

When deploying a token, you configure up to 7 reward participants, each with their own share of LP fees:

  • Recipients — the addresses that receive LP fees
  • Admins — each recipient has an admin who can update the recipient address or fee preferences later
  • Split — each recipient's share, in basis points out of 10,000
For developers: contract calls
// Check available fees
uint256 available = feeLocker.availableFees(recipientAddress, WETH);

// Claim your accumulated fees
feeLocker.claim(recipientAddress, WETH);

// Anyone can trigger collection for a locked LP position
lpLocker.collectRewards(tokenAddress);

The three reward fields above are rewardRecipients[], rewardAdmins[], and rewardBps[] on LockerConfig. rewardBps must sum to exactly 10,000:

// Example: 70% to creator, 30% to partner
rewardRecipients: [creatorAddr, partnerAddr]
rewardAdmins:     [creatorAddr, partnerAddr]
rewardBps:        [7000, 3000]