Engine
Fee harvest
Books creator fees as they accrue and, in live mode, claims them through the FeeSplitter.
| Id | harvest |
| Venue | Elysium |
| Tick | every 30 s |
| Capital | none (allocation 0) |
What it does
Every tick it reads the creator fees waiting in Montra's hook for the token's pool: MontraHook.pendingCreator(poolId).
- When the pending amount grows, the increase is booked as revenue: a
revenuerow of kindaccrued, with half to the treasury (toTreasuryHype) and half to holder draws (toPrizesHype), valued at the current HYPE price. A ledger event Creator fees +X HYPE is written when the increase is worth at least $1. - When it drops, someone has claimed. Counting restarts from the new value. The cursor is saved in
engine_state.revenue-cursor, so restarts don't double count.
Which pool it watches: MOTION_TOKEN's pool, or in paper mode the stand-in pool (STANDIN_TOKEN, UNSEEN by default). Without either, the status is blocked: Waiting for MOTION to launch on Montra (set MOTION_TOKEN).
Paper mode
The treasury's half of each increase is credited to the paper treasury's HYPE on Elysium immediately (the claim is instant). No transaction is ever sent.
Live mode
- Reads
FeeSplitter.poolId(). If it is zero the status isblocked(FeeSplitter has no pool yet: the admin calls setPoolId(poolId) once after launch). If it is not MOTION's pool, alsoblocked. - Once the pending fees reach
MIN_HARVEST_HYPE(default 0.25 HYPE), it simulates then sendsFeeSplitter.claim()from the keeper wallet and waits up to 60 s. - It reads the
Splitevent, writes arevenuerow of kindclaimedwith the transaction hash, and aharvestledger event (Harvested X HYPE: … to the treasury, … to holder draws).
The Treasury's new balance is picked up by the 15-second chain sync, not credited by hand.
Parameters
| Param | Value |
|---|---|
minHarvestHype | MIN_HARVEST_HYPE, default 0.25 |
split | 50 % treasury · 50 % holder draws (FeeSplitter, on chain) |
poolId | the pool being watched |