# MINOX — Agent Skill File

Instructions for an AI agent acting for a user who wants to mint MINOX MINER
NFTs, check mining accrual, or (once it starts) join the MINOX token sale.
Every function name, parameter and price below is copied from the deployed
contract ABIs and verified against live on-chain reads. Read the state
yourself before any transaction; numbers in this file are a snapshot.

## Chain and contracts (BNB Smart Chain, chainId 56)

- MINOX token (BEP-20): `0x1f2a0b4bb57fb23599d8de243a6de7f81f0ec70a`
- MINOX MINER NFT (ERC-721): `0xd89e1ab3ee67130ae2419f33c8b8b82499e0f15a`
- Mining: `0x2789b993b9b993e953b55878bd613149de4afb7a`
- Token Sale: `0x36ad3900265dd1ef6a87c75db56866d9edf031b2`
- LP Lock (Pancake pair, set later): `0xa99e5c9dbd097f9f31d8d1d9595417a76853c088`
- Team Vesting: `0xe41a50bd620117126b0104b8be51b94379751789`
- Reserve Lock (holds the 10% reserve): `0xf29d507f517fa21543d4717172ec0087b476c6eb`
- USDT (BSC, 18 decimals): `0x55d398326f99059fF775485246999027B3197955`
- Contract owner: `0xb991EAb24f2A3AB85196Be995753A0A20B469D03`
- Public page: https://minox.pages.dev

## Live snapshot (read on-chain 2026-11-30, ~05:38 WIB)

- Token: name `MINOX`, symbol `MINOX`, 18 decimals, total supply
  1,000,000,000 MINOX (fixed, no mint function).
- Allocation balances verified: Mining holds 300,000,000 MINOX (reward pool),
  Sale holds 200,000,000 MINOX (sale stock), Team Vesting holds 50,000,000
  MINOX, Reserve Lock holds 100,000,000 MINOX (locked 180 days).
- NFT: name `MINOX MINER`, symbol `MINOX`. `mintOpen()` = **true**.
  `totalMinted()` = 0 of `MAX_SUPPLY()` = 50,000. `freeMinted()` = 0 of
  `FREE_QUOTA()` = 100. `MINT_PRICE()` = 500000000000000 wei = 0.0005 BNB.
  `MAX_PER_WALLET()` = 100.
- Mining: `claimOpen()` = **false** — claims are locked until the owner opens
  them after the PancakeSwap pool goes live. `RATE_PER_DAY()` = 1 MINOX
  (1e18 wei) per NFT per 86,400 seconds.
- Sale: `saleStart()` = **0 — the token sale has NOT started.** No T0 date has
  been set on-chain; do not quote any start date. `currentSession()` reverts
  while the sale has not started — never call it before checking
  `saleStart()`. `MIN_BUY()` = 10 USDT (10e18 wei). Session duration
  604,800 seconds (7 days) each, back to back from T0.

## 1. Mint a MINER NFT (payable, BNB)

Views on the NFT contract to read first:

- `mintOpen()` — must be true.
- `totalMinted()`, `MAX_SUPPLY()` — remaining supply.
- `freeMinted()`, `FREE_QUOTA()` — free units left (100 at launch).
- `freeClaimed(address)` — whether this wallet already used its free mint.
- `mintedBy(address)`, `MAX_PER_WALLET()` — per-wallet cap 100 (free counts).
- `MINT_PRICE()` — 0.0005 BNB in wei.

Exact payable call:

- `mint(uint256 amount)` on the NFT contract.
- Value to send: `(amount - freeUnits) * MINT_PRICE()`, where `freeUnits` is
  1 if `freeMinted() < FREE_QUOTA()` AND `freeClaimed(buyer)` is false,
  otherwise 0. Only ONE unit per mint call can be free, and only one free
  mint per wallet ever. Overpayment is refunded by the contract in the same
  transaction, but always compute the exact value first.
- After the receipt confirms, the minted tokenIds are the sequential ids in
  the `Minted(address,uint256,bool)` events of the transaction (ids start at
  1). Verify with `ownerOf(uint256)`.

## 2. Mining accrual and claim

- Accrual: 1 MINOX per NFT per day from its mint timestamp, no staking.
- Read `pendingOf(uint256 tokenId)` on the Mining contract for one NFT, or
  `pendingOfMany(uint256[] tokenIds)` for a batch. The Mining contract is NOT
  enumerable: you must know the tokenIds (from the wallet's mint events /
  Transfer logs on the NFT contract).
- Claim call: `claimMany(uint256[] tokenIds)` (or `claim(uint256 tokenId)`)
  on the Mining contract. **This reverts while `claimOpen()` is false**, which
  is the current state — accrual keeps accumulating and nothing is lost by
  waiting. Only claim tokenIds the caller currently owns; a foreign id makes
  the whole batch revert.

## 3. Token sale (NOT started — instructions valid once T0 is set)

Sessions (index 0, 1, 2), read live with `prices(uint256)`, `caps(uint256)`,
`sold(uint256)` on the Sale contract:

| Session | Price (USDT per MINOX) | Cap (MINOX) | Window from T0 |
|---|---|---|---|
| 0 | 0.02 | 80,000,000 | days 0–7 |
| 1 | 0.025 | 70,000,000 | days 7–14 |
| 2 | 0.03 | 50,000,000 | days 14–21 |

Steps once `saleStart()` > 0 and the current session is running:

1. Gate: the buyer must hold at least 1 MINER NFT —
   check `balanceOf(buyer)` on the NFT contract > 0.
2. Quote: tokens received = `usdtAmount * 1e18 / prices(session)`. Near a
   session cap the buy is partially filled and only the proportional USDT is
   charged. Minimum buy 10 USDT (`MIN_BUY()`).
3. Approve: `approve(saleContract, usdtAmount)` on the USDT contract, enough
   to cover the charged amount.
4. Buy: `buy(uint256 usdtAmount)` on the Sale contract. MINOX is transferred
   to the buyer in the same transaction — there is no refund mechanism.
5. Unsold tokens of each session are burned by the owner with
   `closeSession()` after that session ends; they never roll into the next
   session.

## Rules

- Never send a transaction without showing the user a preview (contract,
  function, value, gas estimate) and getting explicit confirmation.
- Re-read `mintOpen()`, `saleStart()`, `claimOpen()` and the quotas at
  execution time; this snapshot goes stale.
- Prices on this page and in this file are the contract's own prices, shown
  so buyers and agents can compute exact transaction values.
