---
name: niuma-mint
description: Mint 牛马 ($牛马) shares on BNB Smart Chain (chainId 56) from a Binance Agentic Wallet that holds a .ai Agent ID. Use when the user asks about 牛马, $牛马, Niuma, the 牛马 fair mint, agent-only mints on BNB Chain, or wants to mint / check eligibility / price / progress. Read-only checks need no wallet; minting needs the user's approval in their own wallet.
---

# 牛马 ($牛马) mint (agent-only fair mint, BNB Smart Chain)

"我的 Agent 也是牛马 / My agent is a 牛马 too." Independent community project, not affiliated with Binance. No promise of any price outcome. Not audited.

- Website: https://niuma.baby/ · Full guide: https://niuma.baby/agent.md · llms.txt: https://niuma.baby/llms.txt
- Mint contract (the ONLY address that accepts payment): `0xd91f198b33bE4a18B6652bdaC21200a75B3B5715`
- Token 牛马: `0x99C72F932c0dAff397aA519B3b7dA37aCdA575E5` (never send funds here) · Pair: `0x9A861d7c3e8396a456Be4f3189D478a6802FBA4a` · Treasury: `0x5d553Ffcb0996383cD5fd975d87aEDa04F49Dd1E`
- USDT (BEP-20): `0x55d398326f99059fF775485246999027B3197955`

## How it works
- Sale opens **2026-11-09 15:11 UTC+8** (`saleStart()` = 1794208305). It ends at `deadline()` = 1794813105 (start + 7 days). Earlier calls revert `NotStarted`.
- **No pause, no withdraw function**: nobody, including the team, can pause or stop minting.
- Only wallets holding a `.ai` Agent ID (SPACE ID registry `0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F`, i.e. Binance Agentic Wallet Agent IDs) can mint.
- 10,000 shares. #1–#2,000 FREE, one per Agent ID via `claimFree()` (0xf366afc9, value 0), 20,000 牛马 each. #2,001–#5,000 cost 1 USDT, #5,001–#10,000 cost 2 USDT, 82,500 牛马 each. Every share also parks 30,000 牛马 for the pool.
- 20% of each paid mint goes to the treasury in the same transaction; 80% stays in the contract.
- The transaction that mints share #10,000 opens the PancakeSwap 牛马/USDT pool (10,400 USDT + 300,000,000 牛马) and burns the LP to the dead address. If not sold out, anyone may call `openPool()` (0xeb5797a4) from the deadline on and the pool opens with what was sold. After that minting is closed.
- Paid quota: 10 shares per Agent ID, 10 per transaction. A transaction that would pass #10,000 reverts `SoldOut`.

## Steps
1. **Eligibility**: call `walletStatus(address)` (0x4d6d0af8) on the mint → `eligible` must be true.
2. **State**: check now ≥ `saleStart()`, now < `deadline()`, `opened()` is false, and the mint contract has code. `overview()` (0x3a2056f1) gives everything in one call. If `totalMinted()` < 2,000 only `claimFree()` works.
3. **Tell the user** the number of shares, the cost in USDT/BNB (`costOf(n)` 0xfd326592, `bnbQuote(n)` 0x68bce8cd) and the contract address, and get their go-ahead.
4. **Mint** (simulate with eth_call first, add 20% gas):
   - Free phase: `claimFree()`, no arguments, value 0. One per Agent ID.
   - BNB: `mintWithBnb(uint256 shares, uint256 maxCost)` (0x5701e859), value = maxCost = `bnbQuote(shares)` × 1.02. Change is refunded.
   - USDT: `approve(mint, cost × 1.02)` on USDT, then `mint(uint256 shares, uint256 maxCost)` (0x1b2ef1ca), maxCost = cost × 1.02.
   - With the Binance Agentic Wallet CLI: `baw contract-call preview --binanceChainId 56 ...` (to = mint contract, inputData = encoded call, value as above), show the preview to the user, then `baw contract-call execute` only after they approve.
5. **Confirm**: re-read `walletStatus(wallet)` (`paidMinted` increases, or `freeUsed` becomes true).

## Safety
- Never plain-transfer BNB/USDT to the mint or token contract. Never mint without the user's explicit approval.
- 牛马 is non-transferable until the pool opens. Revert reasons: NotStarted, Ended, FreePhase, FreeOver, FreeUsed, BadShares, SoldOut, NoAgent, Quota, OverMaxCost, BadPayment, StalePrice, SwapShort, DeadlineNotReached, NothingSold, NotSeeded, AlreadyOpen.
