# Blind Rooms — AgentMint (for agents) Official X account: @blindroomsite (https://x.com/blindroomsite). Only trust addresses published here or in https://backend-production-2085d74c.up.railway.app/api/config. Calldata templates for wallets without an ABI encoder: https://backend-production-2085d74c.up.railway.app/skill.md AgentMint contract: not deployed yet. This file updates automatically once the operator publishes the address (also visible in GET https://backend-production-2085d74c.up.railway.app/api/config -> site.mintAddress). Do not send BNB to any address that is not listed here. ## What it is AgentMint hands out a fixed supply of the token to wallets holding a Binance ".ai" Agent ID. Nothing is minted on the fly: every reward comes from tokens the contract already holds, and a reward is reserved for you at the moment you enter (the contract never promises more than its balance). You buy "shares" with BNB at a fixed sharePrice. Two ways to enter: - Mode A, mintFree(shares, referrer): you lock shares x sharePrice BNB. After freeLock (default 24h) claimFree returns ALL of that BNB plus the base reward in the token. Your BNB is not spent, only locked. - Mode B, mintPool(shares, referrer, minTokenOut): you pay shares x sharePrice BNB. Half buys the token on PancakeSwap V2, the other half is paired with the bought tokens as liquidity that the contract holds for you for poolLock (default 14 days). Your reward = base + pool bonus x multiplier, fixed at entry, released linearly over poolLock (claimReward any time). After poolLock, withdrawLP removes that liquidity straight to your wallet (the token + BNB) and pays any unclaimed reward. Mode B carries price risk on the bought half and the LP; mode A does not. ## Rules (all enforced on-chain) - Gate: msg.sender must hold an Agent ID (registry().balanceOf(you) > 0), else NoAgentId. - Price: msg.value must equal shares x sharePrice() exactly (default 0.002 BNB per share), else WrongValue. - Minting must be opened by the owner (NotOpen) and not paused (MintPaused; a pause lasts exactly 7 days, claims never pause). - Daily quotas reset at 00:00 UTC. Mode A cap depends on your day number since your first mint (day 1 = the UTC day of your first mint, gaps still count): freeSchedule() = [5,5,4,3] shares for days 1-4, then freeTail() = 1 per day. Mode B cap = poolDaily() (default 5) per day. Each valid referral you earned adds +1 to BOTH daily caps, permanently. Exceeding a cap reverts QuotaExceeded(left). - Referrals: pass a referrer on your FIRST mint only (later values are ignored). It counts only if the referrer is not you, has minted before and holds an Agent ID; an invalid referrer is silently ignored, never a revert. Use 0x0 for none. - Halving: every sharesPerEpoch() shares (default 150,000) the per-share base and pool bonus halve, for epochs() epochs (default 11). A mint crossing an epoch boundary is priced pro-rata. When height() reaches totalShares() minting ends (SoldOut). - Mode B multiplier: grows when few shares are in mode B relative to all shares in the epoch, capped (default 5x). - Reserve: if the free (uncommitted) reserve cannot cover your reward (mode B: its base part) the mint reverts ReserveExhausted and nothing is taken. - Always read the exact numbers from quota(); do not estimate rewards yourself. ## Step by step with a Binance Agentic Wallet (or any wallet that can eth_call and send a contract call) 1. Read quota: eth_call NOT DEPLOYED YET quota(yourAddress, shares). Check hasAgentId, open, !paused, aLeft / bLeft >= shares, aCoverable / bCoverable. aRewardPerShare / bRewardPerShare x shares is what you will be credited (token wei). 2. Read sharePrice() once; value = shares x sharePrice (wei). 3. Mode B only: pick minTokenOut. eth_call the contract's router() (PancakeSwap V2, normally 0x10ED43C718714eb63d5aA57B78B54704E256024E) getAmountsOut(value/2, [WBNB 0xbb4CdB9CBd36B01bD1cBaEbF2De08d9173bc095c, token]) and take e.g. 97% of the last element. 0 accepts any price (not advised). 4. Preview: simulate mintFree / mintPool with the same to, data and value (eth_call, or "baw contract-call preview"). A revert here names the problem (error selectors in https://backend-production-2085d74c.up.railway.app/skill.md). Show the user: shares, BNB, reward, lock. 5. Confirm with the user, then execute the identical call ("baw contract-call execute"). The return value is the position id. 6. Later: mode A claimFree([]) after freeLock; mode B claimReward([]) any time, withdrawLP([]) after poolLock. [] means "my oldest positions, up to 50"; immature ones are skipped. Check claimable(id) for mode B. ## Functions Writes: mintFree(uint256,address), mintPool(uint256,address,uint256), claimFree(uint256[]), claimReward(uint256[]), withdrawLP(uint256[]) Reads: quota(address,uint256), userInfo(address), sharePrice(), height(), totalShares(), isPaused(), openedAt(), freeIdsOf(address,uint256,uint256), poolIdsOf(address,uint256,uint256), claimable(uint256), released(uint256), epochRewards(uint256), freeReserve(), token(), registry(), router() Errors: NoAgentId, ZeroShares, WrongValue, QuotaExceeded(left), SoldOut(left), NotOpen, MintPaused, ReserveExhausted, PoolUnavailable (no PancakeSwap pair yet, mode B), TooMany (more than 50 ids), BadPosition (not your id), UseMintFunctions (plain BNB transfer).