Custody
Accounting
How each fee wallet's SOL is tracked, and how the books are checked against the chain.
Two buckets#
| Bucket | Filled by | Spent on |
|---|---|---|
| Reserve | Each deposit, first, up to 0.02 SOL (default 0.02) | Fee collection; covers a round's small overspend |
| Budget | Everything above the reserve | Rounds: buy, token account rent, network fees |
Our own transactions#
Every transaction the worker sends is recorded before it is broadcast. The deposit scanner skips those signatures, so money leaving the wallet is never mistaken for money coming in. Each confirmed transaction's exact lamport cost is read from its pre- and post-balances and booked to the round as buy, rent or fee.
Reconciliation#
Every 10 minutes by default the worker compares each fee wallet's finalized balance with reserve plus budget, but only at a point where both describe the same moment: no round open or finished in the last two minutes, none of our transactions in the last two minutes, and the deposit scanner has handled every signature up to the wallet's newest one. A surplus above 0.00005 SOL is then booked as an unattributed deposit; a shortfall is taken from the budget first, then the reserve, and logged. The scanner itself only moves past a signature once its transaction has been read, so a deposit that is not readable yet is retried on the next pass rather than skipped.
Everything is public#
A coin's page lists its deposits and rounds with their signatures, and the totals deposited, spent on buys, on rent and on fees. The same data is in GET /api/coins/:mint.