---
name: bawagent
description: How an AI agent buys BAWAGENT (BAWG) shares on BNB Chain (BSC) — an open share sale with no eligibility gate and no free allocation. Every share is a paid share at a tiered USDT price starting at 1.00 USDT, paid 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).
---

# BAWAGENT — Agent Buying Guide

BAWAGENT is a single-contract ERC-20 + share sale on BNB Chain (BSC,
chainId 56). The sale is **open to every wallet** — the contract performs
no eligibility check of any kind. 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 BAWG**
- Total pool: **44,400 shares — all of them paid.** There is **no free
  allocation**: no free shares, no airdrop, no team allocation, no
  separate presale. Calling `mint(0, ref)` reverts ("nothing to mint").
- **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.40 USDT** for the
  final tier (paid shares 44,000–44,399).
- **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 buy shares.
- **Quota:** 10 shares per wallet, **+1 for every first-time buyer who
  names you as referrer** on their first purchase (the referrer can be
  any wallet, just not the buyer), bonus capped at +20 → max quota 30.
  Max 10 paid shares per transaction. Quota counts shares currently held
  (net of refunds).
- **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, the share counters
  and quota are freed, and your first-purchase flag stays used (so a
  refund cannot farm a second referral credit).
- **POOL OPENING (automatic):** the purchase that pushes paid shares to
  **1,000** opens the PancakeSwap V2 BAWG/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 purchases 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 BAWG (hard cap).

## Deployment status — READ FIRST

The contract is deployed with CREATE2, so its address is fixed in
advance: `0x0B8e1C648E36051be107Db496002301Ba3096087`.

**At the time this file was published (2026-11-20) the contract was NOT
yet deployed** — `eth_getCode` at that address returned `0x`. Before
sending any transaction, check `eth_getCode` yourself: if it still
returns `0x`, the sale has not started and every call will fail. Once
code exists at the address, the sale is live and this guide applies as
written. The sale page detects deployment automatically.

## Contracts (BSC mainnet, chainId 56)

| Contract | Address |
|---|---|
| BAWAGENT (token + sale, single contract) | `0x0B8e1C648E36051be107Db496002301Ba3096087` |
| 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 contract source is published for Sourcify verification at deployment
— read it before sending funds. Contract on BscScan:
https://bscscan.com/address/0x0B8e1C648E36051be107Db496002301Ba3096087

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

## Key functions (selectors derived from this contract's own ABI)

All calls go to the BAWAGENT contract unless noted.

| Function | Selector | Notes |
|---|---|---|
| `mint(uint256 paidShares, address referrer)` | `0x94bf804d` | **Payable (BNB).** Send ≥ `quoteBnb(paidShares)`. `paidShares` must be 1–10; `0` reverts. Every share is paid — nothing is attached on top. |
| `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). |
| `priceAt(uint256 i)` | `0x9dab2054` | USDT price of the paid share at global paid index `i` (pure). |
| `usdtToBnb(uint256 usdtAmount)` | `0x2733dcf2` | BNB needed for a USDT amount at the live spot price. |
| `hasMinted(address)` | `0x38e21cce` | Whether the wallet has ever bought (first-purchase flag; survives refund). |
| `sharesOf(address)` | `0xf5eb42dc` | Wallet's shares (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). |
| `poolOpened()` | `0x12d81ba8` | True once the pool is open. |
| `pair()` | `0xa8aa1b31` | The BAWG/USDT pair address (zero address until the pool opens). |
| `balanceOf(address)` | `0x70a08231` | Wallet's BAWG balance (ERC-20 on the same contract). |
| `totalSupply()` | `0x18160ddd` | Current BAWG supply (buyer tokens + reserve held by the contract). |

Constants: `TOTAL_SHARES()` `0x85e3f997` = 44,400 ·
`TOKENS_PER_SHARE()` `0xb9bd4730` = 50,000,000 (×10^18) ·
`POOL_OPEN_PAID_SHARES()` `0x2b9ebce9` = 1,000 · `BASE_QUOTA()`
`0x6ac8c1b7` = 10 · `MAX_PER_TX()` `0xf43a22dc` = 10 ·
`REFERRAL_BONUS_CAP()` `0x4772d00b` = 20 · `MAX_SUPPLY()` `0x32cb6b0c`
= 4,440,000,000,000 (×10^18) · `DEAD()` `0x03fd2a45` =
0x000000000000000000000000000000000000dEaD.

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

## How to buy shares

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

- `eth_getCode(0x0B8e1C648E36051be107Db496002301Ba3096087)` must not be
  `0x` — no code, no sale yet.
- `totalPaidShares()` tells you the current price tier and the distance
  to the pool opening (1,000).
- `quotaOf(you)` minus `sharesOf(you)` is how many more shares you may
  hold; a single call can carry at most 10.

### 2. 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.
3. Verify the receipt and the `Minted` event: `tokenAmount` equals
   `paidShares × 50,000,000` BAWG, now in your wallet (transfers stay
   locked until the pool opens).

### 3. Referrals

Pass the inviter's wallet address as `referrer` on your **first**
purchase. When a first-time buyer names you, your quota grows by +1
(max 30). The referrer can be any wallet — there is no eligibility
condition on either side. Share your link:
`https://bawagent.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
first-purchase flag stays. 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 **BAWG/USDT**:

- Buy with USDT: path `[USDT, BAWAGENT]`
- Buy with BNB: path `[WBNB, USDT, BAWAGENT]`
- 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-20)

Contract **not yet deployed** (see "Deployment status" above). Every
counter therefore starts at zero when deployment lands: total shares
0 / 44,400 · paid 0 / 1,000 toward pool opening · pool opened: no · pair:
none yet · price of the first paid share: 1.00 USDT · BNB quote becomes
available from the contract's own views once it is deployed.
(Always re-read the views above — these numbers move.)

## Safety notes for agents

- Verify the contract address character-by-character against this file
  before transacting. Impostor contracts are common.
- Buying shares needs **no token approval** — if any site asks you to
  approve a token before buying BAWAGENT shares, it is not this sale.
  (Approvals are only for router swaps, and only for the token you are
  swapping in.)
- BAWG 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.
- BAWAGENT is an independent project and is not affiliated with,
  endorsed by, or connected to Binance.
- Buying is a purchase, not a promise of profit or future value.
