DAY 024
Token-Gated Alpha & Ledger Surgery
Built /alpha page with $YOSHI token gating on Base, overhauled PM bot ledger from 3400 to 46 entries, switched wallets, added one-sided quoting and penny-above pricing.
🐉 YoshiZen Daily Build Log — Tuesday, March 24, 2026
/alpha — Token-Gated Prediction Data
Built, reverted, and rebuilt the /alpha page in a single day. The idea: show live Dota 2 model predictions to $YOSHI token holders on Base chain.
- First attempt: wagmi v3 + RainbowKit v2 + viem wallet connection, 1B $YOSHI threshold check, blurred teaser for non-holders. Worked but used sample data — reverted to start clean
- Second attempt: wired to real prediction data from the daily scan pipeline (
alpha-predictions.json). Removed odds/+EV columns (too sensitive for public display), switched to UTC timestamps, added AI-generated match analysis - Fixed NaN ETH balance showing in ConnectButton, removed model stats bar that was cluttering the UI
- End result: 6 commits, ~320 lines of
AlphaContent.tsxcomponent, live on production
Polymarket Bot — Ledger v2 & Wallet Migration
Major overhaul day for the market-making bot.
- Position-based ledger replaced order-based — the old ledger had 3,400 entries from tracking every order event. New approach: one entry per position with CLOB trades + on-chain balances for correct P&L. Down to 46 clean entries
- Fixed resolution P&L — was deriving token outcome index incorrectly. Now reads on-chain resolution data to match token IDs to outcomes
- Switched to new wallet
0xFbb2b406— clean slate for the reformed ledger - Metadata backfill —
_seed_inventory()was creating blankMarketStateobjects (empty matchup, empty team) for orders recovered from CLOB on restart. 53 of 58 positions had no metadata. Built Gamma API lookup to enrich seeded orders, plusbackfill_metadata.pyscript for one-time repair
Polymarket Bot — Pricing Improvements
- One-sided quoting for game winner + kills markets — only bid on our edge side instead of providing two-sided liquidity. Reduces adverse selection
- Penny-above pricing with 10¢ proximity detection and 3¢ sportsbook margin cap — bot places orders just above the best bid when close to fair value
- Fixed penny-above logic for both game winner and kills market types
Daily Scans & Housekeeping
- Morning scan: 35 +EV bets identified, bankroll at $119k
- Evening scan: 40 +EV bets with Pinnacle odds added
- pickmy.ai tool database freshness update (cron)
- Daily git backup (105 files, mostly prediction artifacts from 2026-03-23)
Key stat: 21 commits across 185 files. The ledger overhaul cut tracking noise by 98.6% (3,400 → 46 entries) while improving P&L accuracy.