---
name: crawlers
description: >-
  Mint and stake Crawlers Agent (CA) on BNB Smart Chain with a verified
  .ai Agent wallet (baw). Stake CA, earn BNB every 24 hours — rewards
  are pushed to stakers automatically, never claimed.
---

# Crawlers Agent — stake CA, earn BNB every 24 hours

- **Website:** `https://crawlersagent.com`
- **Skill URL:** `https://crawlersagent.com/skills/crawlers/SKILL.md`
- **Chain:** BNB Smart Chain Mainnet (`chainId: 56`)
- **Eligibility:** Verified Binance **`.ai` Agent ID** (`0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F`, `balanceOf > 0`) required for **mint** and **claimFree**.
- **Sourcify (exact match):** https://sourcify.dev/#/lookup/0x5c92D8b2aa748722D7855CD4493F208f66757fd6

## Addresses

| Role | Address |
| --- | --- |
| **CA token / sale / staking (one contract)** | `0x5c92D8b2aa748722D7855CD4493F208f66757fd6` |
| **PancakeSwap V2 pair (CA/WBNB)** | `0x1618C3Be1a07a150CDDD4CcB8174736d0D64a8Cf` |
| **Agent registry** | `0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F` |

## Economics (locked)

- Total **6,000 shares**: **5,823 paid** + **177 free** (TRINE-loss compensation for 20 whitelisted wallets — see *Free shares* below). The free shares are part of the same 6,000; there is no extra issuance.
- Mint price **0.004 BNB** per share; each share mints **70,000 CA** immediately. Max **10 paid shares** per wallet (free claims do not consume this cap).
- Hard cap **600,000,000 CA** total supply: 420,000,000 mint allocation + 180,000,000 pool seed pre-minted to the contract. Full paid sellout raises **23.292 BNB**.
- Every paid mint splits **60% pool / 20% project / 20% staking rewards**. All three legs are **held inside the contract until the pool opens** — the project leg is paid to the project wallet in one go at the open, and not at all if the sale fails.
- **Open:** paid mints + free claims reaching **6,000 shares in total** opens the pool inside the completing transaction; before that, only the project wallet can open early (`manualOpen()`, any fill ≥ 1 share, during the window). Opening price is a constant **0.00000008 BNB/CA = 1.4×** the mint price (0.004 / 70,000 ≈ 5.714e-8): the seed scales with the BNB actually pooled (seed = pool leg × 180,000,000 / 14.4 BNB; at full completion the pool leg is 13.9752 BNB and the seed 174,690,000 CA). Unused seed is burned at the open. **LP is minted to the contract and locked for 60 days**; after the lock only the project wallet may withdraw or relock it.
- **Minting ends when the pool opens.** Mint window: **24 hours** from `mintStart` — opens `2026-11-26 12:00 UTC` (`mintStart = 1795694400`), window ends `2026-11-27 12:00 UTC`. If the pool has not opened by then, the sale fails and every paid mint is **refunded 100%** (see *Refunds*).
- **Trade tax 3% on pair buys and 3% on pair sells** once the pool is open; the whole tax converts to **BNB for the staking reward pool**. Sell tax converts to BNB **inside the sell transaction itself**, before the seller's tokens move. Buy tax is carved in CA at the buy and converts at the **head of the very next unlocked contract interaction** (any sell, `stake`, `unstake`, `distributeRewards`, `claimFree`, or the permissionless `settleTax()`) — a buy runs inside the pair's locked swap, where a nested conversion swap cannot exist. A failed conversion restores the tax balance and retries at the next interaction; it never blocks a trade. Proceeds are tagged to the epoch in which the conversion lands.
- **Staking:** only after the pool opens. Staked CA is locked in the contract — it cannot be sold or transferred while staked. **Unstake at any time, no cooldown**; from that moment the unstaked amount has zero weight in every later epoch. BNB already paid out is never clawed back. Minted and market-bought CA stake identically.
- **Rewards:** one **24-hour epoch** after another, starting at the pool open (epoch 1). The pre-open staking leg of every mint becomes epoch 1's pot and is paid out in full at the first distribution, 24h after the open. When an epoch closes, its **entire pot** is split pro-rata by each wallet's stake **at that epoch's end** (frozen snapshot). An epoch with nobody staking rolls its pot into the next epoch. **Distribution is a push** — holders never claim anything and pay no gas (see *Reward distribution*).

## Selectors (verified against deployed ABI)

Every selector below was computed with `cast sig` from the contract source signature and cross-checked against the deployed ABI on Sourcify (exact match) — all match.

| Fn | Selector |
| --- | --- |
| `mint(uint256)` | `0xa0712d68` |
| `claimFree()` | `0xf366afc9` |
| `stake(uint256)` | `0xa694fc3a` |
| `unstake(uint256)` | `0x2e17de78` |
| `distributeRewards(uint256,uint256)` | `0xdf6c39fb` |
| `settleTax()` | `0xb10a0376` |
| `closeEpochs()` | `0x6c025ce6` |
| `finalizeFailure()` | `0x29aac942` |
| `refundBatch(uint256,uint256)` | `0x7faa7e98` |
| `claimRefund()` | `0xb5545a3c` |
| `totalSharesSold()` | `0x73aff5af` |
| `totalFreeClaimed()` | `0x9ab820d0` |
| `poolOpen()` | `0x6c1fc9c5` |
| `poolOpenedAt()` | `0xc6f6ff05` |
| `saleFailed()` | `0xa226b8ae` |
| `mintStart()` | `0x255e4685` |
| `mintedBy(address)` | `0x3cef28d2` |
| `paidPreOpen(address)` | `0x7a36f2b4` |
| `pendingRefunds(address)` | `0xb613b114` |
| `refundPaid(address)` | `0xd1b4bc0e` |
| `freeAllowance(address)` | `0xec6cf70c` |
| `freeClaimed(address)` | `0x61c0b6a0` |
| `stakeOf(address)` | `0x42623360` |
| `totalStaked()` | `0x817b1cd2` |
| `currentEpoch()` | `0x76671808` |
| `epochEndsAt(uint256)` | `0x8679e5c0` |
| `epochReward(uint256)` | `0x30da5240` |
| `epochTotalStaked(uint256)` | `0x6e7120ce` |
| `lastClosedEpoch()` | `0x2b23ee85` |
| `pendingRewardsOf(address)` | `0x3988bad8` |
| `balanceOf(address)` | `0x70a08231` |
| `totalSupply()` | `0x18160ddd` |

State reads are plain `eth_call`s with the view selectors above (value 0). Useful checks before acting: `poolOpen()`, `totalSharesSold()` (paid shares sold, cap 5,823), `totalFreeClaimed()` (cap 177), `mintedBy(wallet)` (paid shares already bought, cap 10), and the Agent registry's `balanceOf(wallet)` (`0x70a08231` on the registry address) for the Agent ID gate.

## Mint via baw

`PRICE_WEI=4000000000000000` per share (0.004 BNB); value = shares × PRICE_WEI, exactly — the contract reverts on any other amount. `mint(uint256)` takes the share count as its argument. The contract enforces, in order: pool not yet open, `mintStart` reached, window not expired, shares > 0, Agent ID held, wallet total ≤ 10 paid shares, paid cap 5,823 not exceeded, exact payment. Preview then execute.

```bash
export HOME=/home/box/.baw-bot2-home   # or the session home for the target Agent
export CA=0x5c92D8b2aa748722D7855CD4493F208f66757fd6
export SHARES=10                        # 1–10, and the wallet's paid total must stay ≤ 10

node -e '
const { execSync } = require("child_process");
const CA = process.env.CA;
const SHARES = BigInt(process.env.SHARES || "1");
const MINT = "0xa0712d68";
const VALUE = (SHARES * 4000000000000000n).toString();
const inputData = MINT + SHARES.toString(16).padStart(64, "0");
const addrOut = JSON.parse(execSync("baw wallet address --json").toString());
const wallet = addrOut.data?.address || addrOut.data?.addresses?.find(a => String(a.binanceChainId)==="56"||a.chainType==="EVM")?.address;
const preview = JSON.parse(execSync(`baw contract-call preview --binanceChainId 56 --from ${wallet} --to ${CA} --value ${VALUE} --inputData ${inputData} --json`,{maxBuffer:10<<20}).toString());
console.log(JSON.stringify(preview,null,2));
const id = preview.data?.requestId || preview.requestId;
if (!id) throw new Error("preview failed");
console.log(`baw contract-call execute --requestId ${id} --json`);
'
```

The buyer receives `shares × 70,000 CA` in the same transaction. If this mint brings paid + free shares to 6,000 in total, the pool opens inside this transaction.

## Free shares (TRINE-loss compensation)

20 wallets that minted TRINE on 2026-11-25 and were at a loss are whitelisted in the contract for as many free CA shares as they bought TRINE shares (177 in total). A claim pays nothing, splits nothing, and does not consume the 10-share paid cap.

1. Read `freeAllowance(wallet)` (`0xec6cf70c`) and `freeClaimed(wallet)` (`0x61c0b6a0`). If `freeAllowance - freeClaimed` is 0, there is nothing to claim — stop.
2. Call `claimFree()` = `0xf366afc9` with **value 0**, same preview → execute flow as mint. It claims the wallet's **full** remaining allowance in one call (shares × 70,000 CA).
3. Same Agent ID gate as mint. Claims open at `mintStart` together with paid minting, **stay open after the pool opens**, and close only if the sale fails (window over, pool never opened) — after failure, unclaimed allowances lapse and `claimFree()` reverts.

## Stake / unstake via baw

**No ERC20 `approve` is needed — and none is used.** `stake(uint256)` moves the caller's CA into the contract through the contract's own internal ledger update; it never calls `transferFrom` and never touches `allowance`. Do not send an `approve` transaction for staking.

- Stake: `stake(uint256)` = `0xa694fc3a` + amount padded to 64 hex chars, value 0, same preview → execute flow. The amount is in CA wei (18 decimals): staking 70,000 CA is `70000000000000000000000`. Requires the pool to be open (`poolOpen()` true) and `balanceOf(wallet)` ≥ amount.
- Unstake: `unstake(uint256)` = `0x2e17de78` + amount padded, value 0. Any time, no cooldown; reverts if the amount exceeds `stakeOf(wallet)`. Shares of already-closed epochs are folded in before the stake changes, so unstaking never forfeits rewards from epochs that already ended — it only zeroes the weight from the current epoch on.

## Reward distribution (push — holders do nothing)

Rewards are **pushed**; there is no claim function for staking rewards and holders must not be told to claim. Anyone may run the distribution, at anyone's gas:

- `distributeRewards(uint256 fromIdx, uint256 toIdx)` = `0xdf6c39fb` + both indexes padded. It first closes every ended epoch, then pays each staker in the page everything they are owed, straight to their wallet. Page size is capped at **200** (`toIdx - fromIdx ≤ 200`); an index past the end of the stakers list is clamped. Page through `[0,200)`, `[200,400)`, … until a call reverts with `InvalidInput` (start index beyond the list) — that is the stop signal.
- A wallet that rejects the BNB push does not block the page: its amount is parked (`parkedRewards`) and retried automatically by later pages.
- `pendingRewardsOf(wallet)` (`0x3988bad8`) reads what a wallet is currently owed (crystallized + parked + its share of ended-but-unclosed epochs; the unclosed tail is valued at current stakes and is exact once the epochs close).
- Epoch state: `currentEpoch()` (0 before the open), `epochEndsAt(e)`, `lastClosedEpoch()`, `epochReward(e)` / `epochTotalStaked(e)` (an epoch's final pot and stake snapshot, valid once `e ≤ lastClosedEpoch()`). `closeEpochs()` (`0x6c025ce6`) is a permissionless poke that finalizes ended epochs even if nobody stakes or distributes.

## Refunds (only if the sale fails)

If the 24h window ends without the pool opening, the sale has failed: **every paid mint refunds 100%** of what it paid, and no split leg is ever paid out. Minted CA stays with the buyer (inert — no pool, no staking). A manual open by the project wallet voids this path entirely.

1. `finalizeFailure()` = `0x29aac942` — permissionless; finalizes the failure once `mintStart + 86400` has passed with the pool unopened and fewer than 6,000 total shares. (`refundBatch` / `claimRefund` also finalize lazily on first call.)
2. `refundBatch(uint256 fromIdx, uint256 toIdx)` = `0x7faa7e98` — permissionless **push**: pages over the minters list (page size ≤ 500) and sends each wallet its full `paidPreOpen` amount. Anyone may run it; buyers need not act. A wallet that rejects the push is parked in `pendingRefunds` instead of blocking the page.
3. `claimRefund()` = `0xb5545a3c` — self-claim fallback for anything not yet pushed or previously parked. Check a wallet's position with `paidPreOpen(wallet)`, `refundPaid(wallet)` (`0xd1b4bc0e`, amount already refunded) and `pendingRefunds(wallet)` (`0xb613b114`); `saleFailed()` (`0xa226b8ae`) confirms the failure state.

## Safety

Always preview → check risks → the human confirms → execute. Never print keys. Never invent contract addresses. Never sign out of, or switch, the human's Agent wallet unless asked.
