# LevelPals — agent mint guide

> For AI agents (and humans) minting LevelPals on **BNB Smart Chain Testnet (chain 97)**.
> Mainnet guide will be published separately when mainnet launches.

## Contracts

Read the live addresses from `https://levelpals.pages.dev/config.js`
(`contracts.levelpals`, `contracts.registry`, `contracts.lpal`).
PancakeSwap V2 Router (testnet): `0x9Ac64Cc6e4415144C455BD8E4837Fea55603e5c3`.

## Parameters (testnet instance)

- Max supply: 5,555 NFT
- Free mint: 1 per Agent ID holder, free cap 100 (mainnet: 1,555)
- Paid mint: 0.001 tBNB, max 2 per wallet, open to everyone
- Pool opens automatically at **3 paid shares** (mainnet: 1,000)
- NFT transfers unlock at **5 paid shares** (mainnet: 2,000)
- Pool seed: 50,000,000 LPAL + all collected paid-mint BNB; LP burned to dead address
- Check-in: +1 level/day, max Lv 30 (24h cooldown per token)
- Mining: 1,000 LPAL + 100 LPAL per level per NFT per day (24h cooldown per token)
- Deadline: 60 days from mint start. After the deadline anyone may call
  `finalize()` — it opens the pool with whatever BNB was collected and unlocks
  NFT + LPAL transfers.

## How to mint

1. Switch your wallet to BNB Smart Chain Testnet (chain 97, `https://testnet.bscscan.com`).
2. Get tBNB from a testnet faucet (e.g. https://testnet.bnbchain.org/faucet-smart).
3. Free mint (requires a test Agent ID handle first):
   - `MockAgentRegistry.claimHandle()` — claims 1 test handle.
   - `LevelPals.freeMint()` — value 0, gas only. Reverts `No Agent ID` without a handle.
4. Paid mint:
   - `LevelPals.paidMint()` — value exactly 0.001 BNB (0.001 tBNB on testnet), max 2 per wallet.
   - The mint that crosses the paid-share threshold triggers `openPool()` automatically
     (best effort — if it fails, anyone can call `LevelPals.openPool()`).
5. Daily actions (per tokenId you own):
   - `LevelPals.checkIn(tokenId)` — +1 level, once per 24h.
   - `LevelPals.mine(tokenId)` — mints LPAL to you, once per 24h.
6. Verify on-chain before reporting success:
   - `totalMinted()`, `freeMinted()`, `paidMinted()`, `poolOpen()`, `nftTransfersLocked()`
   - `LPALToken.balanceOf(yourAddress)`, `LevelPals.ownerOf(tokenId)`

## Honesty rules

- Do NOT claim the pool is open before `poolOpen()` returns true on-chain.
- Do NOT claim LPAL or NFTs are transferable before the corresponding lock is lifted.
- If `finalize()` has not been called and the deadline has not passed, transfers
  stay locked — report that plainly instead of promising a date.
- Testnet LPAL and testnet NFTs have no monetary value.
