1. A buy puts a cap on
Every buy adds one cap on top. Its size is the buy's SOL, its style and colour come from the transaction's signature.
Three moves, all read from $HCD's trades on chain. Nothing runs on a timer.
Every buy adds one cap on top. Its size is the buy's SOL, its style and colour come from the transaction's signature.
Caps come off the top until their SOL reaches the sale. The last one comes off whole. The dog's own red cap stays.

A sale that takes off more than a third of a tower of 10+, or the 1000th cap, ends the tower. The pot buys $HCD and burns it.
The size is the SOL the buy put into the market (pump.fun's own trade amount, fees aside).
| Size | Buy |
|---|---|
| XS | under 0.1 SOL |
| S | 0.1 to under 0.5 SOL |
| M | 0.5 to under 1 SOL |
| L | 1 to under 5 SOL |
| XL | 5 SOL and more |
If $HCD trades against PUMP, each trade's PUMP amount is turned into SOL at Jupiter's PUMP price at the moment the keeper reads it, and that price is stored with the trade, so the recount never needs a price feed.
The first two bytes of the buy's transaction signature, modulo 40, pick the style; the next two, modulo 12, pick the colour. One transaction with several $HCD trades gives each the next four bytes.
A sale takes caps off the top of the tower, one by one, adding up the SOL each cap was bought with, until that sum reaches the sale's SOL. The cap that crosses the line comes off whole. Every tower stands on the dog's own red cap: it is worth nothing, belongs to nobody, and no sale takes it off.
Fall: one sale takes off more than a third of the caps the tower had before it, on a tower of 10 caps or more (the dog's cap counts). Ceiling: the tower reaches 1000 caps. Either way, in this order:
hcd <fall|ceiling> <tower> <caps> <sha16>, where sha16 is the first 16 hex characters of the sha256 of the snapshot.burn, memo hcd burn <tower> <SOL> <burned>.$HCD's creator fees go to the owner's wallet. The owner forwards them to the keeper wallet . Everything forwarded since the last event is split:
| Forwarded creator fees | Share |
|---|---|
| The pot: bought back and burned at the next fall or ceiling | 90% |
| Work: RPC, database, hosting, network fees | 10% |
Holders do not have to do anything: the burn comes out of the market. A pot worth under 0.002 SOL waits for the next event (the memo still goes out).
The tower is a pure function of the trades. The recount page rebuilds it from every trade in your browser with the rules file the keeper runs, /js/shared/tower.js, and checks it cap for cap.