Engine

Fee harvest

Books creator fees as they accrue and, in live mode, claims them through the FeeSplitter.

Idharvest
VenueElysium
Tickevery 30 s
Capitalnone (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 revenue row of kind accrued, 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

  1. Reads FeeSplitter.poolId(). If it is zero the status is blocked (FeeSplitter has no pool yet: the admin calls setPoolId(poolId) once after launch). If it is not MOTION's pool, also blocked.
  2. Once the pending fees reach MIN_HARVEST_HYPE (default 0.25 HYPE), it simulates then sends FeeSplitter.claim() from the keeper wallet and waits up to 60 s.
  3. It reads the Split event, writes a revenue row of kind claimed with the transaction hash, and a harvest ledger 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

ParamValue
minHarvestHypeMIN_HARVEST_HYPE, default 0.25
split50 % treasury · 50 % holder draws (FeeSplitter, on chain)
poolIdthe pool being watched