Contracts

BrickFeeRouter

The creator fee recipient for $BSTR. It turns fees waiting in the Pons escrow into ETH in the reserve, at a split nobody can change.

What harvest() does

AnyoneRouterCurveEscrowReserveOperationsharvest()sweepFees(0) (only on the curve)credit(router)claim()all its ETH90%10%
One harvest() call, in order.
  1. While $BSTR is on its bonding curve, the router sweeps the curve. Pons lets the creator fee recipient do that as long as no buyback swap is involved, and buyback is off. After graduation Pons's operator sweeps the pool and this step is skipped.
  2. It claims everything the escrow holds for it. The escrow pays the caller, so the router claims for itself.
  3. It splits its whole ETH balance, rounding dust to operations, and sends both shares on.

If the sweep fails for any reason the harvest still claims and splits. If either destination refuses ETH, the whole call reverts and nothing moves.

Functions

FunctionWhoWhat it does
harvest()AnyoneSweep, claim, split. Returns both shares.
harvestToken(asset)AnyoneThe same for an ERC-20 the escrow credited.
pending()ViewETH waiting: escrow balance plus the router's own.
bindToken(token)Owner, onceRecords $BSTR and its curve. Reverts unless Pons names the router as the token's fee recipient.
migrateRecipient(next)OwnerHands future fees to a new router through Pons. Fees already credited stay harvestable here.
setOperations(wallet)OwnerPoints the operations share at a new wallet. The reserve and its share can't change.
reserve(), reserveBps()ViewThe reserve and its share, fixed at deployment.
operations()ViewThe wallet that gets the rest.
totalHarvested(), totalToReserve(), totalToOperations()ViewRunning totals, in wei.

Events

  • Harvested(caller, claimed, toReserve, toOperations)
  • TokenHarvested(caller, asset, claimed, toReserve, toOperations)
  • TokenBound(token)
  • RecipientMigrated(token, newRecipient)
  • OperationsChanged(previous, next)

What the owner can do

Bind the token once, point the operations share at a new wallet, and migrate the fee stream to a new router. That is all. The owner can't change the split or the reserve, can't pull ETH out, and can't turn on Pons buybacks. Ownership moves in two steps (propose, then accept).