DIAMOND logo

DIAMOND

DOCS · $DMND

protocol documentation · rev.2

How DIAMOND works

The complete mechanics: where the fee comes from, where every wei goes, how holders get paid, and exactly what you have to trust. No hand-waving — everything below is enforced by contracts on Base.

01

What is DIAMOND

DIAMOND ($DMND) is a fixed-supply token on Base paired with a Uniswap v4 hook that taxes selling and pays holding. The token itself is a clean, immutable ERC-20 — no fee-on-transfer, no blacklist, no mint function, free P2P transfers. All the economics live in the hook, at the swap level, which is only possible on Uniswap v4.

The thesis in one line: sell pressure becomes the holders' income. Every panic sell pays a fee that funds a jackpot for everyone who didn't sell, buys back and burns supply, and rewards liquidity providers.

02

The core mechanic: asymmetric fees

  • Buying costs 0%. The hook charges no fee on buys. Entry is frictionless by design — buyers are future holders.
  • Selling costs 0.5% → 10%, scaling with panic. The hook measures real sell volume (in ETH terms) inside a 1-hour pressure window that resets when it expires. Light selling pays the 0.5% floor; as sell pressure approaches 50 ETH in the window, the fee climbs linearly up to the 10% cap. When the dump is at its worst, dumpers pay the most.

These parameters are compile-time constants. No admin, owner, or keeper can change the fees, the window, or the cap — ever.

marginalRate(v) = 0.5% + 9.5% × min(v / 50 ETH, 1)
fee(sell) = average of marginalRate over the sell's own volume

Each sell pays the average of the curve over its own volume — so a single 50 ETH dump, ten 5 ETH dumps, or a contract splitting it into a hundred micro-swaps all pay exactly the same total fee. The mechanism is structuring-proof by construction.

03

Where the fee really goes

Most "tax tokens" track fees as a number in a spreadsheet-like counter. DIAMOND captures them as real funds: the hook takes the fee as ERC-6909 claims it owns inside the PoolManager (OpenZeppelin's BaseHookFee pattern), then redeems them into the treasury. Every pot below is backed by actual WETH with an on-chain exit:

50%

Jackpot

Paid to all holders, pro-rata by balance, every epoch. The heart of the protocol.

30%

Buyback & Burn

Buys $DMND back on the same pool and burns it at 0xdEaD. Circulating supply only shrinks.

20%

LP Loyalty

Donated directly to in-range liquidity providers via v4 donate().

Edge case: on exact-output sells the fee is collected in DMND instead of WETH — that DMND never touches the pots; it is burned immediately on redemption.

04

The jackpot: how holders get paid

The jackpot pays every holder, proportionally to balance, in WETH — without staking, locking, or registering anything. Hold $DMND in your wallet and you are in.

  1. 1.Sell fees accumulate in the jackpot pot (50% of every capture).
  2. 2.Each epoch, the pot is forwarded to the MerkleDistributor contract — a permissionless call anyone can trigger; the destination is hard-coded.
  3. 3.A snapshot of every holder's balance is taken at a single instant, reconstructed from public on-chain Transfer events. Excluded from the share-out: the burn address, the pool manager, the distributor itself, the treasury and the deployer — only real circulating holders count.
  4. 4.Your share = pot × your balance / circulating supply. The full payout table is committed on-chain as a Merkle root, and the epoch opens.
  5. 5.You claim on this site with one click (gas only — the proof is built in your browser). You have 30 days; unclaimed WETH rolls into the next epoch's pot, it never leaves the protocol.

Selling resets your future share the honest way: the next snapshot simply sees your smaller balance. There is no score to game, no timer to reset, no way to count the same tokens twice — the snapshot is a single frozen instant.

05

Why holding is profitable

Three independent yield engines run on every unit of sell pressure:

  • Direct cash flow. 50% of all sell fees are distributed in WETH, pro-rata by balance. You are paid for doing nothing — the optimal strategy is enforced by the curve, not by faith.
  • Permanent circulating-supply reduction. 30% buys $DMND on the open market and burns it. Every dump shrinks the circulating supply your tokens are measured against. Burned tokens are also excluded from snapshots, so your share of every future jackpot grows as supply burns.
  • Deeper, stickier liquidity. 20% rewards in-range LPs, which tightens the market and dampens volatility — protecting the price holders hold.

Worked example: say a turbulent stretch captures 2 ETH in sell fees over an epoch. That splits into 1 ETH for the jackpot, 0.6 ETH for buyback & burn and 0.4 ETH for LPs. If you hold 1% of circulating supply, your claim that epoch is 0.01 ETH — earned passively, paid in WETH, claimable with one click. The worse the panic, the higher the fee tier, the bigger the pots.

And the reflexive kicker: high sell pressure pushes the fee toward 10%, which makes dumping progressively more expensive exactly when it hurts most — throttling crashes while refilling the holder pots at the maximum rate.

06

Trust & security model

What you don't have to trust:

  • [✓]The token: immutable ERC-20, fixed 1B supply, no owner, no mint, no pause.
  • [✓]The fees: all constants. Nobody can raise them, lower them, or redirect them.
  • [✓]The pots: destinations are one-shot and hard-coded after deploy. The jackpot can only go to the distributor; treasury funds only move where the hook says.
  • [✓]The cap: an epoch can never promise more WETH than the distributor actually holds — enforced on-chain. Claims need a valid Merkle proof; double-claims are blocked by bitmap.
  • [✓]The buyback: its destination is fixed — bought $DMND burns at 0xdEaD on the public pool, with slippage protection, verifiable by anyone.

What you do trust, stated honestly: the epoch snapshot is computed off-chain by a keeper, and the keeper also chooses when to trigger buybacks and LP donations. The keeper cannot steal beyond the funded pot (hard cap), cannot claim twice, and cannot touch your tokens — but it could publish a dishonest payout table. The defense: every snapshot is reproducible by anyone from public on-chain events, so a dishonest root is immediately detectable, and the distributor's ownership is 2-step transferable to a multisig. This trade-off is what keeps holding 100% passive — no staking contract, no token locking, no custody.

The protocol was adversarially reviewed during development: two earlier jackpot designs were discarded after internal audits proved them exploitable, and the current snapshot-based model is the one that survived. The full test suite (26 tests, including a cross-check that the off-chain snapshot tree matches the on-chain verifier byte-for-byte) passes green.

07

Protocol specs

ChainBase mainnet · 8453
Supply1,000,000,000 $DMND · fixed, immutable
EngineUniswap v4 · afterSwap + afterSwapReturnDelta hook
LP fee0.30% static (independent from the hook fee)
Buy fee0%
Sell fee0.5% floor → 10% cap, linear with 1h sell volume (50 ETH softcap)
Fee split50% jackpot · 30% buyback & burn · 20% LP loyalty
Jackpot payoutWETH, pro-rata by balance, per epoch (Merkle claim)
Claim window30 days per epoch, then unclaimed funds recycle forward
Token contractTBA — deploying soon
Hook contractTBA — deploying soon
DistributorTBA — deploying soon
Treasury vaultTBA — deploying soon
08

FAQ

Q · Do I need to stake or lock my tokens?

No. Holding $DMND in your own wallet is the entire requirement. Snapshots read your balance directly from the chain.

Q · What exactly happens when I claim?

The site fetches the published payout table for the current epoch, builds your Merkle proof locally in your browser, and submits a single claim transaction. The contract verifies the proof and sends WETH to your wallet. You only pay gas.

Q · What if I miss an epoch?

The site always serves the current epoch — claim while it's live (a new one opens roughly weekly, once the pot passes a minimum threshold). Unclaimed WETH is never lost to the protocol: after the 30-day window it recycles into the next epoch's pot and comes back to holders, you included.

Q · Can the team change the fees or drain the pots?

Fees: no — fees and splits are compile-time constants, and pot destinations are one-shot and hard-coded. Pots: the worst a malicious keeper could do is misallocate the already-funded jackpot pot by publishing a dishonest payout table — capped on-chain at the funded amount, and immediately detectable because anyone can recompute the snapshot (see section 06). Buyback and loyalty funds can only ever reach the pool.

Q · What happens to my jackpot share if I sell half my bag?

You pay the sell-side fee on the trade, and from the next snapshot onward your share is proportional to your remaining balance. Nothing retroactive — the current epoch's claim, where you were already snapshotted, stays yours.

Q · Why Uniswap v4?

Only v4 hooks can see swap direction (buy vs sell), charge an asymmetric dynamic fee, and capture it as real funds — all while keeping the token a clean ERC-20 that every wallet supports natively.

Q · Why trade here instead of app.uniswap.org?

The official Uniswap interface auto-routes most v4 hooks, but hooks that use custom accounting (like ours — that's how the fee is captured as real funds) require a manual allowlist review by Uniswap Labs. Until that approval lands, this dapp routes your swap through the exact same Uniswap v4 pool via the official Universal Router — same pool, same prices, same on-chain settlement. We have applied for allowlisting.

Q · Why did my sell revert during a dump?

The anti-dump fee scales with sell pressure in real time, so it can climb between your quote and your transaction landing. If the new fee pushes your output below your slippage minimum, the trade safely reverts — you lose nothing but gas. Raise slippage or wait for the pressure window to cool down. The trade panel shows the live fee.

Ready to mine by holding?

Zero fee to enter. The curve does the rest.

Preview the swap →