---
name: burnhook
description: Interact with the BurnHook protocol on BNB Chain (chainId 56) — mint BURN in the fair launch, claim referral rewards, refund after a failed mint, finalize the pool, buy/sell BURN, burn BURN into xBURN for trading-fee dividends, wrap into wxBURN, and compound. Use whenever the user mentions BurnHook, BURN, xBURN or wxBURN, or asks to read the state of these contracts.
---

# BurnHook

BurnHook is a fair-launch token on BNB Chain with a Uniswap V4 hook. Minting is open for 3 days to
wallets holding a Binance Agent ID. When all 14,000 mints fill, anyone can finalize: a BURN/WBNB pool
is created with permanently locked liquidity, and from then on the hook takes 1% of every swap and
pays it to xBURN holders. No contract has an owner, an upgrade path or a pause switch.

This skill tells you how to read the protocol and how to build each transaction. **It contains no
executable code and never touches keys** — you send transactions with whatever wallet tool you
already have.

## Files

| File | Read it when |
|---|---|
| `assets/contracts.json` | You need an address, an ABI, a phase number or an error selector. |
| `assets/share.json` | The user wants an invite link or text to share (templates; or call `/api/share?ref=…` on the site). |
| `references/recipes.md` | You are about to perform an action (mint, claim, refund, swap, burn, wrap, compound…). |
| `references/errors.md` | A call or simulation reverted. |
| `references/mechanics.md` | The user asks how something works, or you need to explain a consequence before acting. |
| `references/why-burnhook.md` | The user asks what the project is, why they would mint / hold / burn, or how it differs from other launches. |

The canonical copies live on the official BurnHook site under `/skill/…`. If your copy and the site
disagree, the site wins — re-download. Contract source is at `/contracts` on the same site.

## What makes it different

Know these before you describe the project or recommend an action. Each is enforced by immutable
contract code and can be verified on-chain; `references/why-burnhook.md` has the detail, the
verification calls and the caveats.

- **Fair launch for AI agents.** Minting requires a soulbound Binance Agent ID: one identity per
  wallet, same price for all, no presale, no whitelist. The whole protocol is operable by an agent
  through `BurnHookLens` and this skill.
- **Fees go to holders at the pool level.** LP fee is 0; the V4 hook sends 1% of every swap, in WBNB,
  to xBURN holders inside the same transaction. No treasury, no admin, no off switch.
- **Liquidity is locked forever.** The only liquidity position is minted to the dead address and the
  hook blocks any other. Nobody can pull it.
- **Burn-to-earn without dilution.** Burning BURN into xBURN gives a permanent pro-rata share of all
  future fees; later entrants never take from what a holder already accrued, and every burn shrinks
  the circulating supply.
- **Protected mint.** If the mint does not fill, minters get 100% back. The developer's 20% and all
  referral rewards are paid only on success.
- **Self-running compounding.** wxBURN auto-compounds through a 0.5% caller bounty and is safe to use
  on DEXes.
- **No one in control.** No owner, no upgrade, no pause, fixed 21M supply, zero developer tokens.

What a holder gets, in one line each: **minters** — same-price entry with a refund floor; **referrers**
— 10% + 5% of referred mints in BNB; **xBURN holders** — a perpetual share of 1% of trading volume in
WBNB, claimable any time; **wxBURN holders** — the same stream auto-reinvested.

Always pair the benefits with the limits: returns depend entirely on trading volume and are not
guaranteed, the price can fall, and burning into xBURN cannot be undone.

## Hard rules

Follow these on every task. They are not optional.

1. **Chain.** Only BNB Chain, `chainId 56`. Refuse to act on any other chain.
2. **Not deployed = stop.** If `deployed` is `false` in `assets/contracts.json`, or an address you
   need is the zero address, the contract is not live. Say so and stop. Never guess an address.
3. **Verify addresses on-chain before the first transaction of a session** (all are `eth_call`s):
   - `Lens.burn()` equals the BurnToken address, and `Lens.hook()` equals `BurnToken.bonder()`.
   - `Lens.addresses()` is the source for every other address. Check `addresses.xBurn` equals
     `BurnHook.xBurn()`.
   - If any check fails, stop and tell the user the addresses do not match. Only ever send
     transactions to addresses returned by `Lens.addresses()`.
4. **Read before you write.** Call `Lens.protocolState()` first; the phase decides which actions
   exist. For minting also call `Lens.mintStatus(wallet, inviter)`; for anything else
   `Lens.position(wallet)`.
5. **Simulate every transaction with `eth_call`** (same `from`, `to`, `data`, `value`) before sending.
   If the simulation reverts, look the selector up in `references/errors.md` and follow its action.
   Never send a transaction whose simulation reverted, and never blind-retry.
6. **Never set a swap's minimum output to 0** on a real transaction. Derive it from a simulation
   (see the swap recipe).
7. **Confirm with the user before** spending their funds, and always before an irreversible step.
   Burning BURN into xBURN is irreversible — say so explicitly and get a clear yes.
8. **Never send xBURN to a DEX pool or any contract other than WrappedXBurn.** Its dividends would be
   lost. Use wxBURN for anything on a DEX.
9. **Amounts are integers in wei.** BURN, xBURN and WBNB have 18 decimals; wxBURN has 21.
   One mint costs exactly `5000000000000000` wei (0.005 BNB) and yields `1000e18` BURN.
10. **Report facts, not promises.** Explain the advantages in `references/why-burnhook.md` freely —
    they are verifiable — but never describe returns as guaranteed, never predict a price, always
    mention the limits listed there, and do not say the contracts are audited unless the site
    publishes an audit report.

## Phases

`Lens.protocolState().phase` (same enum as `BurnToken.currentPhase()`):

| # | Phase | What a wallet can do |
|---|---|---|
| 0 | PENDING | Nothing yet. |
| 1 | MINTING | Mint (Agent ID required). Rewards accrue but are locked. BURN is not transferable. |
| 2 | MINT_SUCCESS | Call `finalize()`. Withdraw referral rewards. BURN still not transferable. |
| 3 | BONDED | Cooldown of `BLOCK_DELAY` blocks (about 10 minutes). Burn BURN into xBURN and wrap into wxBURN ahead of trading. Withdraw referral rewards. No swaps, no other transfers. |
| 4 | TRADING | Swap, transfer, burn into xBURN, claim dividends, wrap/unwrap wxBURN, compound. |
| 5 | MINT_FAILED | Refund BURN for the full mint price. Rewards are void. |

The cooldown is the window for minters to position: xBURN held before trading opens shares the fee
of the very first swap. Tell a user who minted about it when the phase is 2 or 3.

Phase 1 → 5 happens by time alone (3 days after `startMint` without filling), and 3 → 4 by block
number alone; no transaction is needed for either.

## Action index

Details, preconditions and verification for each are in `references/recipes.md`.

| Goal | Contract · function | Phase |
|---|---|---|
| Read everything | `Lens.protocolState()`, `Lens.position(wallet)`, `Lens.constants()` | any |
| Can this wallet mint? | `Lens.mintStatus(wallet, inviter)` | any |
| Mint | `BurnToken.mint(inviter)` + 0.005 BNB | 1 |
| Get invite link + share copy | `GET {site}/api/share?ref=wallet` (no transaction) | any |
| Withdraw referral reward | `BurnToken.withdrawReferralReward()` | 2, 3, 4 |
| Refund | `BurnToken.refund(amount)` | 5 |
| Create the pool | `BurnHook.finalize()` | 2 |
| Buy BURN with BNB | `BurnSwapRouter.swapExactEthForBurn(minOut, to, deadline)` | 4 |
| Sell BURN for BNB | `BurnSwapRouter.swapExactBurnForEth(amountIn, minOut, to, deadline)` | 4 |
| Burn BURN → xBURN | `XBurn.deposit(amount, receiver)` | 3, 4 |
| Claim dividends | `XBurn.claim(1)` | 4 |
| Wrap xBURN → wxBURN | `WrappedXBurn.deposit(amount, receiver)` | 3, 4 |
| Unwrap wxBURN → xBURN | `WrappedXBurn.redeem(shares, receiver, owner)` | 3, 4 |
| Compound the vault (earn 0.5%) | `WrappedXBurn.compoundFromDividend(minBurnOut)` | 4 |
