Documentation

Technical reference for the Bonker token factory.

Claiming Fees

Fees accumulate in the FeeLocker contract and must be claimed manually.

Claiming your fees

The reward recipient set during token deployment can claim accumulated LP fees:

// Check available fees
uint256 available = feeLocker.availableFees(recipientAddress, WETH);

// Claim fees (called by the reward recipient)
feeLocker.claim(recipientAddress, WETH);

Fees are usually claimed in WETH. The LpLocker periodically collects pool fees, converts them according to reward preferences, and deposits into the FeeLocker.

Fee collection trigger

Fee collection from the LP position is permissionless — anyone can trigger it:

// Trigger fee collection + swap for a locked LP position
lpLocker.collectRewards(tokenAddress);

This decreases liquidity to collect accumulated fees, converts them according to reward preferences, and deposits into the FeeLocker for distribution.