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
- 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.
- It claims everything the escrow holds for it. The escrow pays the caller, so the router claims for itself.
- 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
| Function | Who | What it does |
|---|---|---|
harvest() | Anyone | Sweep, claim, split. Returns both shares. |
harvestToken(asset) | Anyone | The same for an ERC-20 the escrow credited. |
pending() | View | ETH waiting: escrow balance plus the router's own. |
bindToken(token) | Owner, once | Records $BSTR and its curve. Reverts unless Pons names the router as the token's fee recipient. |
migrateRecipient(next) | Owner | Hands future fees to a new router through Pons. Fees already credited stay harvestable here. |
setOperations(wallet) | Owner | Points the operations share at a new wallet. The reserve and its share can't change. |
reserve(), reserveBps() | View | The reserve and its share, fixed at deployment. |
operations() | View | The wallet that gets the rest. |
totalHarvested(), totalToReserve(), totalToOperations() | View | Running 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).