---
name: nagent
description: How an AI agent mints NAGENT shares on BNB Chain (BSC) — claim 1 free share (first 555 Agent ID wallets) or buy shares at a tiered USDT price starting at 1.00 USDT, paying in BNB at the contract's live spot quote. Includes contract addresses, function selectors, quota and referral rules, the pre-pool-opening refund, the automatic pool opening at 1,000 paid shares, trade taxes, and the built-in swap (active after the pool opens).
---

# NAGENT — Agent Minting Guide

NAGENT is a single-contract ERC-20 + share sale on BNB Chain (BSC,
chainId 56), modelled on JAGENT and scaled 1:100. The sale is **Agent ID
holders only**. There is ONE contract — it is both the token and the sale.
There is no owner, no admin, and no upgrade path.

- **1 share = 50,000,000 NAGENT**
- Total pool: **44,400 shares** = **555 free** + **43,845 paid**
- **FREE:** the first 555 Agent ID wallets get **1 free share** on their
  first-ever mint (attached automatically; `mint(0, ref)` claims only the
  free share). Free shares mint buyer tokens only — no liquidity reserve.
- **Price (paid shares):** the paid share at global paid index `i` costs
  **1.00 USDT + 0.10 USDT × floor(i / 1000)** — i.e. 1.00 USDT for paid
  shares 0–999, 1.10 for 1,000–1,999, rising to 5.30 USDT at the last tier.
- **Payment: BNB only.** The contract converts the USDT price at the live
  PancakeSwap V2 WBNB/USDT spot rate. Send at least `quoteBnb(n)`; any
  excess BNB is returned in the same transaction. No token approval is
  needed to mint.
- **Quota:** 10 shares per wallet **including the free share**, **+1 for
  every first-time buyer who names you as referrer** on their first mint
  (referrer must be an Agent ID holder, not yourself), bonus capped at
  +20 → max quota 30. Max 10 paid shares per transaction.
- **REFUND (pre-pool only):** until the pool opens you can call `refund()`
  at any time and get **100% of your escrowed BNB back**. Your paid-share
  tokens and the matching reserve tokens are burned; a free share, if you
  have one, stays yours, and your first-mint/referral flag stays used.
- **POOL OPENING (automatic):** the mint that pushes paid shares to
  **1,000** opens the PancakeSwap V2 NAGENT/USDT pool in the same
  transaction: 80% of the escrowed BNB is swapped to USDT and paired with
  the accrued reserve tokens (50,000,000 per paid share), **the LP tokens
  are sent to the dead address (burned)**, 20% goes to the treasury, and
  token transfers unlock. Later mints keep the tiered price; each one
  sends 20% to the treasury and adds 80% to the pool the same way.
- **Trade taxes (after the pool opens, pair trades only):** buy **1%** to
  the treasury; sell **2%** (1% burned + 1% to the treasury);
  wallet-to-wallet transfers 0%. Transfers are blocked until the pool
  opens (mints and burns excepted).
- **Max supply:** 4,440,000,000,000 NAGENT (hard cap).

## Contracts (BSC mainnet, chainId 56)

| Contract | Address |
|---|---|
| NAGENT (token + sale, single contract) | `0xA6524a2f82217496656Bd956E58d943Edd73197e` |
| Agent ID registry (Binance) | `0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F` |
| PancakeSwap V2 router | `0x10ED43C718714eb63d5aA57B78B54704E256024E` |
| PancakeSwap V2 factory | `0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73` |
| BSC USDT | `0x55d398326f99059fF775485246999027B3197955` |
| WBNB | `0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c` |
| WBNB/USDT spot pair (price source) | `0x16b9a82891338f9ba80e2d6970fdda79d1eb0dae` |
| Treasury | `0x2193d6e0468ac747823e7e876F1ACd34FFe43A67` |
| Dead address (LP burn) | `0x000000000000000000000000000000000000dEaD` |

The NAGENT contract is Sourcify **exact_match** verified — read the source
before sending funds:
https://repo.sourcify.dev/56/0xA6524a2f82217496656Bd956E58d943Edd73197e
Deploy transaction:
https://bscscan.com/tx/0x2d9d69dfaa8fc533a4174ddff258d2978bc35d16b76a6ec044ff31a2b66102e3

Human sale page: https://nagent-454.pages.dev/ (this file lives at /skill.md there)

## Key functions (selectors verified against the deployed ABI)

All calls go to the NAGENT contract unless noted.

| Function | Selector | Notes |
|---|---|---|
| `mint(uint256 paidShares, address referrer)` | `0x94bf804d` | **Payable (BNB).** Send ≥ `quoteBnb(paidShares)`. `paidShares = 0` claims the free share only. First-ever mint auto-grants the free share while the pool of 555 lasts. |
| `refund()` | `0x590e1ae3` | Full refund of all your paid shares — **only before the pool opens**. |
| `quoteBnb(uint256 n)` | `0x1d493476` | Live BNB cost of the next `n` paid shares (tiered USDT price at spot rate, rounds up). |
| `quoteUsdt(uint256 n)` | `0x28a7184d` | USDT cost of the next `n` paid shares. |
| `currentPriceUsdt()` | `0x90275732` | USDT price of the next paid share (starts at 1.00 USDT, 18 decimals). |
| `isAgent(address)` | `0x1ffbb064` | Eligibility check (registry `balanceOf` > 0). |
| `freeUsed(address)` | `0x2626c4bf` | Whether the wallet's free share is used. |
| `freeRemaining()` | `0x5a781a6b` | Free shares left (starts at 555). |
| `hasMinted(address)` | `0x38e21cce` | Whether the wallet has ever minted (first-mint flag; survives refund). |
| `sharesOf(address)` | `0xf5eb42dc` | Wallet's total shares (free + paid, net of refunds). |
| `paidSharesOf(address)` | `0xabfe5c7e` | Wallet's paid shares. |
| `paidBnbOf(address)` | `0xb6155737` | Wallet's escrowed BNB (refundable until the pool opens). |
| `quotaOf(address)` | `0xef23b3a3` | Wallet's share quota (10 + referral bonus, max 30). |
| `referralBonusOf(address)` | `0x956bb5b7` | Quota bonus earned from invitees (0–20). |
| `totalShares()` | `0x3a98ef39` | Total shares issued, net of refunds (max 44,400). |
| `totalPaidShares()` | `0xb55362be` | Paid shares sold (pool opens at 1,000). |
| `totalFreeShares()` | `0xdd2ff773` | Free shares given out (max 555). |
| `poolOpened()` | `0x12d81ba8` | True once the pool is open. |
| `pair()` | `0xa8aa1b31` | The NAGENT/USDT pair address (zero address until the pool opens). |
| `balanceOf(address)` | `0x70a08231` | Wallet's NAGENT balance (ERC-20 on the same contract). |
| `totalSupply()` | `0x18160ddd` | Current NAGENT supply (buyer tokens + reserve held by the contract). |

Constants: `TOTAL_SHARES()` = 44,400 · `FREE_POOL()` = 555 ·
`TOKENS_PER_SHARE()` = 50,000,000 (×10^18) · `POOL_OPEN_PAID_SHARES()` =
1,000 · `BASE_QUOTA()` = 10 · `MAX_PER_TX()` = 10 ·
`REFERRAL_BONUS_CAP()` = 20 · `MAX_SUPPLY()` = 4,440,000,000,000 (×10^18).

Events: `Minted(buyer, paidShares, freeGranted, bnbPaid, tokenAmount)` ·
`ReferralCredited(referrer, buyer, newBonus)` ·
`Refunded(buyer, paidShares, bnbAmount)` ·
`PoolOpened(pair, bnbAmount, usdtAmount, reserveTokens, liquidityBurned)` ·
`LiquidityAdded(usdtAmount, reserveTokens, liquidityBurned)`.

## How to mint

### 1. Check eligibility and state (read-only)

- `isAgent(yourAddress)` must be `true` (you hold a Binance Agent ID).
- `freeRemaining()` and `freeUsed(yourAddress)` tell you whether your
  first mint will include a free share.
- `totalPaidShares()` tells you the current price tier and the distance
  to the pool opening (1,000).

### 2a. Claim ONLY the free share (first 555 wallets)

Call the NAGENT contract with no value:

```
mint(0, 0x0000000000000000000000000000000000000000)
```

No payment, no approval — just gas. You receive **50,000,000 NAGENT**.
If the free pool is exhausted or you already used your free share, this
call reverts.

### 2b. Buy paid shares with BNB

1. Read `quoteBnb(paidShares)` for the current BNB cost.
2. Call `mint(paidShares, referrer)` with `value` ≥ the quote (a small
   buffer, e.g. +1–2%, protects against spot movement — unused BNB is
   returned in the same transaction). Use the zero address as referrer if
   nobody invited you. If your free share is still unused, it is attached
   automatically on top — remember it counts toward your quota, so a
   first mint can carry at most 9 paid shares (9 paid + 1 free = 10).

### 3. Referrals

Pass the inviter's wallet address as `referrer` on your **first** mint.
When a first-time buyer names you, your quota grows by +1 (max 30).
Share your link: `https://nagent-454.pages.dev/?ref=<your-address>`

### 4. Refund (before the pool opens only)

Call `refund()` from the wallet that paid. The contract returns 100% of
your escrowed BNB (`paidBnbOf`), burns your paid-share tokens and the
matching reserve tokens, and frees the shares and quota. Your free share
and first-mint flag stay. Once `poolOpened()` is true, `refund()` reverts.

## Swap (after the pool opens)

The sale page has a built-in swap panel; agents can also call the
PancakeSwap V2 router `0x10ED43C718714eb63d5aA57B78B54704E256024E`
directly. The pool is **NAGENT/USDT**:

- Buy with USDT: path `[USDT, NAGENT]`
- Buy with BNB: path `[WBNB, USDT, NAGENT]`
- Sell: the reverse paths.

You **must** use the fee-on-transfer variants, or the trade reverts /
misquotes because of the 1% buy / 2% sell tax:

| Function | Selector |
|---|---|
| `swapExactETHForTokensSupportingFeeOnTransferTokens(uint256,address[],address,uint256)` | `0xb6f9de95` |
| `swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256,uint256,address[],address,uint256)` | `0x5c11d795` |
| `swapExactTokensForETHSupportingFeeOnTransferTokens(uint256,uint256,address[],address,uint256)` | `0x791ac947` |
| `getAmountsOut(uint256,address[])` | `0xd06ca61f` |

Quote with `getAmountsOut`, then compute the expected receive **after
tax** (buy: gross × 0.99; sell: gross × 0.98) and set `amountOutMin`
below that by your slippage. Token-in swaps need an `approve` to the
router first (`approve(address,uint256)` `0x095ea7b3`) — approve only the
amount you are swapping. LP tokens are burned: check the pair contract's
`balanceOf(0x000000000000000000000000000000000000dEaD)`.

## Live stats at publication time (2026-11-16 ~23:55 WIB)

Total shares 0 / 44,400 · free 0 / 555 (555 remaining) · paid 0 / 1,000
toward pool opening · pool opened: no · pair: none yet · price of next
paid share: 1.00 USDT · quote for 1 paid share ≈ 0.0016985 BNB.
(Always re-read the views above — these numbers move.)

## Safety notes for agents

- Verify the contract address character-by-character against this file
  and the Sourcify listing before transacting. Impostor contracts are
  common.
- Minting needs **no token approval** — if any site asks you to approve
  a token before minting NAGENT shares, it is not this sale. (Approvals
  are only for router swaps, and only for the token you are swapping in.)
- NAGENT cannot be transferred or sold until the pool opens. If you need
  your money back before then, `refund()` returns 100% of escrowed BNB —
  but it burns the corresponding paid shares.
- Buying is a purchase, not a promise of profit or future value.
