{
  "name": "罪恶都市",
  "symbol": "罪恶都市",
  "description": "Fixed-price first sale on BNB Smart Chain for Agent ID holders, then a PancakeSwap V2 pool opened by the contract. Pay BNB directly, no approve.",
  "chain": { "name": "BNB Smart Chain", "chainId": 56 },
  "officialSources": {
    "site": "__SITE_URL__/",
    "skill": "__SITE_URL__/skill.md",
    "llms": "__SITE_URL__/llms.txt",
    "x": "https://x.com/HackouTW"
  },
  "contracts": {
    "sale": "__SALE_ADDRESS__",
    "token": "__TOKEN_ADDRESS__",
    "pair": "__PAIR_ADDRESS__",
    "router": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
    "agentIdRegistry": "0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F",
    "deployBlock": "__DEPLOY_BLOCK__"
  },
  "eligibility": {
    "requires": "Agent ID held by the paying wallet (agentOf(wallet).ok == true)",
    "sharesPerAgentId": 100,
    "quotaRead": "quotaLeft(address)"
  },
  "sale": {
    "sharePriceWei": "3000000000000000",
    "sharePriceBnb": "0.003",
    "tokensPerShareWei": "10000000000000000000000",
    "presaleShares": 10000,
    "startUnix": 1795010400,
    "startRead": "saleStart()",
    "durationHours": 24,
    "endRead": "presaleEnd()",
    "refundUntilRead": "refundDeadline()",
    "openPriceMultiple": "1.5",
    "presaleTokensSellableAtOpening": true,
    "lpReceiver": "0x000000000000000000000000000000000000dEaD"
  },
  "split": {
    "poolPct": 75,
    "referrerPct": 15,
    "buyerBonusTokensPct": 5,
    "projectPctWithReferrer": 10,
    "projectPctWithoutReferrer": 25
  },
  "token": { "buyTaxPct": 2, "sellTaxPct": 3, "mintAfterOpeningLockHours": 24, "decimals": 18 },
  "permissions": { "owner": false, "adminFunctions": false, "withdrawFunction": false, "upgradeable": false },
  "officialReferral": { "code": "__OFFICIAL_CODE__", "address": "__OFFICIAL_REF_WALLET__", "linkFormat": "__SITE_URL__/?ref=<address>" },
  "actions": [
    { "name": "quote", "signature": "quote(address buyer,uint256 shares,address referrer) view returns (bool ok,uint8 reason,uint256 filled,uint256 pay,uint256 tokens,uint256 toReferrer,uint256 toPayee,uint256 toPool)", "selector": "0xad18ad0c" },
    { "name": "presaleMint", "when": "state()==1", "signature": "presaleMint(uint256 shares,address referrer) payable", "selector": "0xb2e9b032", "value": "shares * SHARE_PRICE()", "gasLimit": 300000 },
    { "name": "mint", "when": "state()==4", "signature": "mint(uint256 shares,address referrer,uint256 minTokensOut) payable", "selector": "0x836a1040", "value": "shares * SHARE_PRICE()", "gasLimit": "estimate + 30% (about 700000)" },
    { "name": "plainTransfer", "when": "state()==1 or state()==4", "value": "BNB; buys floor(value / SHARE_PRICE()) shares, remainder sent back", "gasLimit": 300000 },
    { "name": "refund", "when": "state()==1 and now < refundDeadline()", "signature": "refund()", "selector": "0x590e1ae3", "gasLimit": 200000 },
    { "name": "openPool", "when": "state()==2 or state()==3", "signature": "openPool()", "selector": "0xeb5797a4", "gasLimit": "estimate (up to about 9.5M with 200 referral payouts)" },
    { "name": "claimReferral", "when": "after opening and pendingRef(you) > 0", "signature": "claimReferral()", "selector": "0xe02f1ebd" },
    { "name": "referralIncome", "signature": "pendingRef(address) view returns (uint256); refPaid(address) view returns (uint256)" }
  ],
  "states": { "0": "NotStarted", "1": "Presale", "2": "FullPending", "3": "TimeUpPending", "4": "Open", "5": "Capped", "6": "Terminated" },
  "quoteReasons": { "0": "OK", "1": "not a buying phase", "2": "zero shares", "3": "no Agent ID", "4": "wallet bound to another Agent ID", "5": "Agent ID quota used up", "6": "block mint cap full", "7": "price pushed down earlier in this block" }
}
