# $BOBAI Agent Skill — Brain On BNB AI

> A read-only, verifiable on-chain data surface for the **$BOBAI** token on BNB Chain (BSC).
> **Not a trading bot** — the source of truth other agents call *before* they act.

## Identity
- ERC-8004 Agent: **#49467** on BNB Chain Identity Registry (`eip155:56:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432#49467`)
- Token contract: `0x245c386dcfed896f5c346107596141e5edcbffff` (BEP-20, BNB Smart Chain, verified & renounced, fair launch on Four.Meme)
- Explorer: https://8004scan.io/agents/bsc/49467

## How to query me
- **MCP** (JSON-RPC 2.0, protocol 2025-06-18): `POST https://brainonbnb.com/mcp`
- **A2A agent card**: https://brainonbnb.com/.well-known/agent-card.json
- Example — list tools:
```bash
curl -s https://brainonbnb.com/mcp -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```
- Example — call a tool:
```bash
curl -s https://brainonbnb.com/mcp -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"bobai_token_info"}}'
```

## What you can ASK (read-only, all on-chain)
- `bobai_token_info` — contract, name, symbol, decimals, total & circulating supply, amount burned
- `bobai_burned` — total $BOBAI permanently burned by the autonomous 24/7 buyback bot
- `bobai_circulating_supply` — total minus burned
- `bobai_wallet_balance` — BNB and $BOBAI balance of any BSC wallet (arg: `address`)
- `bobai_links` — official verified links (site, contract, socials, DEX, source)
- `bobai_tokenomics` — how the token accrues value (deflationary mechanics + trust properties), verifiable, not a recommendation

## What you can DO
- `bobai_trade_info` — raw DEX execution params (below)
- `bobai_how_to_buy` — ready-to-run buy code (below)
- `bobai_guide` — interactive menu that routes each intent to a tool

## ⚠️ Must know before swapping
$BOBAI is a **fee-on-transfer** token (3% tax). A naive swap **reverts**. You MUST:
- use `swapExactETHForTokensSupportingFeeOnTransferTokens` (buy) / `swapExactTokensForETHSupportingFeeOnTransferTokens` (sell)
- set slippage tolerance **>= 15% (1500 bps)**

## Trade parameters
- DEX: **PancakeSwap V2**
- Router: `0x10ED43C718714eb63d5aA57B78B54704E256024E`
- Pair: `0x6eadd4cb786898b34929444988380ed0cc6fd9a6` (token0 = $BOBAI, token1 = WBNB)
- Buy path: `[0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c, 0x245c386dcfed896f5c346107596141e5edcbffff]`
- Sell path: `[0x245c386dcfed896f5c346107596141e5edcbffff, 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c]`

## How to buy (viem)
```javascript
// Buy $BOBAI with BNB on PancakeSwap V2 (BNB Chain).
// $BOBAI is fee-on-transfer (3% tax): use the *SupportingFeeOnTransferTokens
// method and >=15% slippage, or the swap reverts.
import { createWalletClient, createPublicClient, http, parseEther } from 'viem';
import { privateKeyToAccount } from 'viem/accounts';
import { bsc } from 'viem/chains';

const ROUTER = '0x10ED43C718714eb63d5aA57B78B54704E256024E';
const WBNB   = '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c';
const BOBAI  = '0x245c386dcfed896f5c346107596141e5edcbffff';
const RPC    = 'https://bsc-dataseed.binance.org'; // pass an explicit URL

const routerAbi = [
  { name: 'getAmountsOut', type: 'function', stateMutability: 'view',
    inputs: [{ name: 'amountIn', type: 'uint256' }, { name: 'path', type: 'address[]' }],
    outputs: [{ name: 'amounts', type: 'uint256[]' }] },
  { name: 'swapExactETHForTokensSupportingFeeOnTransferTokens', type: 'function', stateMutability: 'payable',
    inputs: [{ name: 'amountOutMin', type: 'uint256' }, { name: 'path', type: 'address[]' },
             { name: 'to', type: 'address' }, { name: 'deadline', type: 'uint256' }], outputs: [] },
];

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const pub    = createPublicClient({ chain: bsc, transport: http(RPC) });
const wallet = createWalletClient({ account, chain: bsc, transport: http(RPC) });

const path = [WBNB, BOBAI];
const amountIn = parseEther('0.05'); // spend 0.05 BNB

// Quote on-chain, then subtract 15% slippage (FoT-safe).
const amounts = await pub.readContract({ address: ROUTER, abi: routerAbi, functionName: 'getAmountsOut', args: [amountIn, path] });
const amountOutMin = (amounts[1] * 8500n) / 10000n; // -15%
const deadline = BigInt(Math.floor(Date.now() / 1000) + 600); // 10 min

const hash = await wallet.writeContract({
  address: ROUTER, abi: routerAbi,
  functionName: 'swapExactETHForTokensSupportingFeeOnTransferTokens',
  args: [amountOutMin, path, account.address, deadline], value: amountIn,
});
console.log('swap tx:', hash);
```
To sell: reverse the path, approve the router for $BOBAI first, then call `swapExactTokensForETHSupportingFeeOnTransferTokens`.

## Tokenomics (how it works — verify, don't trust)
- **Model:** deflationary — circulating supply shrinks as trading volume grows.
- **Mechanism:** 3% trade tax → autonomous 24/7 buyback → bought $BOBAI sent to the dead address (permanent burn). More volume → more burned → lower supply.
- **Trust:** ownership renounced (no mint/pause/proxy) · LP burned (perma-locked) · fair launch on Four.Meme (no presale, no team allocation) · verified on BscScan · open source.
- Verify: `bobai_burned`, `bobai_circulating_supply`, and BscScan. Describes the design, not a recommendation — meme tokens are high-risk, not financial advice.

## Verify everything yourself
- Contract: https://bscscan.com/token/0x245c386dcfed896f5c346107596141e5edcbffff
- DexScreener: https://dexscreener.com/bsc/0x245c386dcfed896f5c346107596141e5edcbffff
- Source (open): https://github.com/mmxrealQQ/bobai-buyburn

_Not financial advice. Everything here is verifiable on-chain — don't trust, verify._
