Trench Cemetery takes dead coins and pays the people who buried them. Everything below is done by one keeper wallet, the cemetery, with ordinary Solana transactions. There is no program of our own and nothing runs on a timer: each rule fires on an event.
A coin can be buried when, at the moment its tokens arrive, both are true:
The all time high is the highest candle body (open or close, never a wick) in the coin's two biggest pools (GeckoTerminal, up to 180 days back) whose volume is at least $5,000 and at least 1% of the cap it claims: a $90M top needs $900K traded in that candle. Thin pools cannot fake a high, so they cannot fake grief. The cap now comes from Jupiter. A coin that is alive, too big or has no chart goes back to its sender with the memo rip return <why> <mint> <burial signature, 8 characters>. $RIP sent to the cemetery is an offering: it burns with the next buyback.
Your grief in a grave is what your buried tokens were worth at the all time high: tokens / supply x ATH cap. Three limits:
$RIP's creator fees are forwarded to the cemetery. When the pot holds 1 SOL:
| Share | Goes to |
|---|---|
| 70% | mourners holding at least 100,000 $RIP at that moment, by grief, the top 60 wallets |
| 20% | buys $RIP back on its curve (or through Jupiter after migration) and burns it |
| 10% | work: RPC, the market data, hosting, network fees |
Every paid wallet's grief halves, so new burials weigh more than old ones without any clock. A share under 0.001 SOL stays in the pot for the next wake. Memo: rip wake <n> <SOL paid> <SOL burned> <hash>, where the hash is the first 16 hex characters of sha256 over the pay list, one wallet:lamports per line.
A buried coin rises when its cap reaches 10x its cap at the first burial, and at least $50,000 with $10,000 of liquidity. The cemetery sells every token of that grave (on the pump curve, or through Jupiter after migration). 50% of the SOL goes to that grave's mourners by the tokens they buried, with no $RIP needed; 50% buys $RIP back and burns it. Memo: rip rise <grave> <mint> <SOL sold> <SOL paid>. The coin can die and be buried again later, in a new grave.
Press Bury a bag, connect, pick the bag: the page checks the coin and builds one transfer to the cemetery with the memo rip bury <mint>. Any wallet app works too: a plain token transfer to the cemetery address is seen the same way.
The cemetery: shown here at launch
js/shared/rules.js, the same code for the keeper, this site and the tests.