How it works

Three moves, all read from $HCD's trades on chain. Nothing runs on a timer.

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.

2. A sale takes caps off

Caps come off the top until their SOL reaches the sale. The last one comes off whole. The dog's own red cap stays.

The pot

3. A fall burns the pot

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.

Cap sizes

The size is the SOL the buy put into the market (pump.fun's own trade amount, fees aside).

SizeBuy
XSunder 0.1 SOL
S0.1 to under 0.5 SOL
M0.5 to under 1 SOL
L1 to under 5 SOL
XL5 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.

40 styles, 12 colours

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.

Sales

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.

Falls and the ceiling

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:

  1. The tower as it stood goes to the album as a snapshot: every cap with its size, style, colour, SOL, wallet and transaction.
  2. The keeper writes the memo hcd <fall|ceiling> <tower> <caps> <sha16>, where sha16 is the first 16 hex characters of the sha256 of the snapshot.
  3. The whole pot buys $HCD (on the pump.fun curve before migration, through Jupiter after) and burns it with SPL burn, memo hcd burn <tower> <SOL> <burned>.
  4. The next tower starts with the dog's red cap. The keeper's buyback is a buy like any other: it puts the first cap on the new tower.

Where the money comes from

$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 feesShare
The pot: bought back and burned at the next fall or ceiling90%
Work: RPC, database, hosting, network fees10%

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).

Recount it

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.