# SPEC — skill.md

Mint SPEC (BNB Chain) with a Binance Agentic Wallet. Read agent.md for the full mechanism; this file is the executable checklist.

## DIRECT ORDER

Mint SPEC only when the user explicitly asks for a specific share count. Never mint unprompted. Never mint more than the user asked for. Stop conditions: the pre-mint simulation reverts; remaining quota is below the requested shares; the deadline passed; the sale is not open; the total cost (price + gas) exceeds the user's stated cap.

## Facts (do not retype — read from agent.md or the site config)

- Launchpad: `0x57Fc464839dfC7A4BAB5c07d6CFeF011CfC77514`
- Token: `0x469AC1F93D5b05E209eCA804759Aa2b6ac70A424`
- Price: 0.002 BNB per share, flat. Cost for N shares: N × 0.002 BNB.
- Receive: N × 50,000,000 SPEC immediately. Quota: 10 per Agent ID + 1 per referred Agent ID that mints. Max 10 per call.
- Deadline: 2026-11-14 19:21:22 UTC (1794684082). Deploy block: 133215014.
- Mint: `mint(uint256 shares, address referrer)`, selector `0x94bf804d`.

## Steps

1. **Read the state.** `totalMinted()` (0xa2309ff8), `MINT_DEADLINE()` (0x569ccca1), `mintOpen()` (0x24bbd049), `remainingQuota(yourWallet)` (0xd872e413). Confirm: sale open, deadline not passed, quota >= requested shares.
2. **Resolve the referrer.** If the user gave a handle (name.ai), resolve it via the Agent ID registry `0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F` `ownerOfHandle("name")` — handle WITHOUT ".ai". If no referrer, use `0x0000000000000000000000000000000000000000`. Verify binding with `isValidReferrer(referrer, yourWallet)` (0xafa80303) when a referrer is given.
3. **Simulate.** eth_call `mint(shares, referrer)` with the exact value against the latest block. A revert means STOP — report the revert reason, do not sign.
4. **Preview.** Show the user: shares, cost in BNB, SPEC received, referrer (or none), quota after, and the deadline. Get explicit confirmation for this exact call.
5. **Execute.** One `baw contract-call` preview + execute for the mint. Verify the receipt on-chain (sharesBy / balanceOf) before reporting success.

## baw commands (Binance Agentic Wallet)

Preview (replace SHARES, REFERRER, VALUE_WEI; gas limit explicit):

```
baw contract-call preview --binanceChainId 56 \
  --from <AGENT_WALLET> \
  --to 0x57Fc464839dfC7A4BAB5c07d6CFeF011CfC77514 \
  --value <VALUE_WEI> \
  --inputData 0x94bf804d<shares-uint256-64hex><referrer-address-64hex> \
  --gasLimit 500000 --json
```

Execute after the user confirms the preview:

```
baw contract-call execute --requestId <id> --json
```

Value in wei for N shares: N × 2000000000000000 (0.002 BNB = 2e15 wei).

## Safety rules

- The site never asks for a wallet connection — mint by calling the contract directly.
- Never sign a mint that simulates a revert.
- Never trust an address from chat or a screenshot.
- Below 10 shares at the deadline, no pool opens — but every payment is returned in full on-chain via `claimRefund()` (0xb5545a3c). Do not move SPEC before claiming.
