Back
KR

2025.08 – 2026.07

YGG· Waifu SweeperFrontend & Contract Engineer

The Waifu Sweeper team under Yield Guild Games (YGG). Started as Princess Sweeper, later rebranded to Waifu Sweeper / Playpsweeper. I owned the entire web client and contract stack and shipped design changes (reward multipliers, season leaderboards, Gold Mine mode, revive mode) on a weekly cadence. The service has ended; the link is a build on the original frontend core logic.

View on explorer

Impact

Projects

Operating method: upgradeable proxies and context injection

2025.09 – 2026.07

Problem · The token economy (reward multipliers, repurchase incentives, seasonal events) changed weekly, and every touch of the payment contract put user funds at risk.

  • ShopManager, NFT, and PriceFeed run behind UUPS proxies with a review fixed into the deploy checklist. New capabilities such as the session tracker live in separate contracts rather than new proxy slots.
  • Game rules, entities, and reward logic specified through so in-game logic changes ship quickly and consistently.
  • Result: 19,939 payments with no failures and weekly design releases.

AGW session-key game sessions

2026.05 – 2026.06

Problem · Repeated actions such as opening tiles, defeating monsters, finding items, and reviving had to be recorded on-chain without a wallet signature every time.

  • A hook that creates, stores, and restores a 24-hour session key with a fee limit and per-contract, per-selector call policies.
  • A WaifuGameSessionTracker contract that validates ordering with a per-player session id and action nonce.
  • Passed the tracker address as an argument instead of adding storage to the already-deployed ShopManager proxy (storage layout safety), and documented why.

NFT gacha and energy-pack shop

2025.09 – 2025.12
  • ShopManager (UUPS): ETH/USDC/USDT/YGG payments with explicit per-token decimals, EIP-712 signature verification with nonce replay protection, slippage handling.
  • PriceFeed (UUPS): Pyth ETH/USD feed, confidence checks, cent-denominated pack pricing.
  • WaifuSweeperNFT (UUPS ERC721): batch minting up to 30, paginated tokensOfOwner to stay under gas limits.
  • Client: bundles Pyth price updates into the transaction, NFT as a payment method, YGG discounts.

Live-ops tooling and seasons

2026.01 – 2026.07
  • Season and Gold Mine leaderboards, reward dashboard, revive mode, referral-code validation.
  • Maintenance page with a service schedule, per-feature and date-based flags.
  • GA4 event design, Twitter Pixel, SEO/OG, BGM and sound effects, image preloading.

Stack

Frontend
React 19, TypeScript, Vite 7, Tailwind v4, Radix UI, Jotai, TanStack Query, Framer Motion, react-router 7
Web3
Wagmi, Viem, Ethers v6, RainbowKit, Abstract Global Wallet (sessions)
Contracts
Solidity, Hardhat, OpenZeppelin Upgradeable v5, Pyth SDK, TypeChain
Infra
Vercel, Cloudflare Turnstile, GA4