2026-11-27 21:05 UTCf1b477
How to Verify Protocol Fees in a Pair
Learn how to verify protocol-owned liquidity fees on-chain by matching a pair’s LP-token mint to feeTo at the event block, even if the recipient later changed.
Crypto Record Editorial4 min read

To verify protocol-owned liquidity fees in Fraxswap, match the pair’s LP-token mint to the factory’s feeTo recipient at the event block; the shares are minted during a liquidity operation, while swap fees generally stay in pool reserves.
Say you are investigating a transaction for one token pair. The pair contract records liquidity activity, and its factory identifies the recipient set in feeTo. That recipient can change, so a current feeTo value may not explain an older event. Understanding how Fraxswap protocol-owned liquidity works helps you interpret what the minted shares represent: a protocol-owned LP position, rather than swap fees sent to a wallet on every trade.
How do you trace a pair’s protocol-fee mint to its recipient?
Trace the pair, factory setting, and LP-token events at the same block to verify the recipient and amount.
- Choose the chain and event. Start with the chain, token pair, and transaction or block you want to investigate. You need the pair and factory addresses, plus an explorer or RPC endpoint that can read the relevant block.
- Confirm the pair’s factory. Open the pair contract on the correct chain and identify its factory. Confirm that the pair belongs to that factory, using the factory’s pair lookup for the two tokens where available. Addresses can differ across chains, so match the chain as well as the token pair.
- Read feeTo at the event block. Open the factory’s contract read interface or query it through an RPC call at the block being checked. Record the feeTo address returned for that historical block. Do not substitute the factory’s current setting when investigating a past event: the recipient may have changed since then.
- Inspect the liquidity transaction. Open the pair’s transaction and find its Mint or Burn event. In the LP-token Transfer events, look for a mint from the zero address to the feeTo recipient recorded at that block. Note the LP-token amount. The pair’s liquidity event and the LP-token mint together connect the operation to the recipient.
For an illustrative case, suppose a pair’s Mint event and LP-token Transfer appear in the same transaction, and the transfer goes from the zero address to the feeTo address returned for that block. The trail links the pair, the factory setting, and the LP shares minted to the recipient. The amount can vary with the pool and event; use the amount recorded in that transaction rather than assuming a fixed fee.
Before tracing the events, you have a pair and a transaction to investigate, but not a verified recipient or share amount. Afterward, those details are visible together in the transaction trail. The investigation changes what you can confirm; it does not itself change pool reserves or the LP tokens recorded by the contracts.
That distinction matters because protocol fees are LP shares, while swap fees generally remain in pool reserves. Fraxswap V2 pair contracts mint protocol-fee liquidity during mint or burn operations when fees are enabled. They do not send a token transfer to feeTo on every swap. A swap may affect reserves without producing the protocol-fee LP-token mint you are tracing.
What does feeTo mean in an AMM?
In an AMM, feeTo is the factory’s recipient setting for protocol-fee LP shares. Read it at the same block as the pair’s liquidity event to identify the address that should receive those shares. If that historical value differs from today’s value, use the historical one for your investigation.
How do I find LP-token mint events in a block explorer?
Open the pair’s liquidity transaction and inspect its event logs for Mint or Burn and LP-token Transfer events. The transfer from the zero address identifies newly minted LP tokens; compare its recipient with feeTo at that block. Your task is complete when the pair, event, historical recipient, and LP-token amount are visible in one transaction trail. Save the transaction hash and block number so you can return to the same evidence or share it with DAO contributors.