Selected work

Case study

Botany Tech

An automated crypto-trading platform with its own season game. Trading bots run on nine exchanges and Hyperliquid; players grow a planet in the browser, earn with a soulbound NFT pass and complete quests on Telegram, X and Discord.

Scope
Trading platform, season game, smart contracts, social integrations
Platforms
Mobile web, desktop web, Telegram Mini App
Stack
NestJS, .NET 8, React, Three.js, Solidity, MongoDB, PostgreSQL
The Botany planet game: a small planet with forests, sea and clouds, and the land card below

The real game, in your browser. About 2 MB, nothing is saved.

One product,three worlds

Botany started as a trading product and grew a game around it, so people stay for a season rather than a single trade. We built across all three parts and the bridges between them.

exchanges plus Hyperliquid
9
bot families as .NET services
5
smart contracts on Base
2
quest task types in the builder
~110

A planetfor every player

Each pass holder gets a planet split into territories. They open lands one at a time and plant forests, and the biome, not a single tree, is what grows. The loop is simple: plant, rain, grow, harvest, reinvest.

territories per planet, from a spherical Voronoi diagram
12–20
forests with 6–24 h cycles and 5 seed rarities
4
triangles in ~19 draw calls on desktop; ~41k on phones
~100k
textures or 3D models: everything is generated from one seed
0
The game screen with the planet, counters and the land card
  1. Harvest Every crop you take flies up to this counter and adds to your season total, and the line under it says how much the next harvest will bring.
  2. Quests and Game The Quests page holds your Grower Pass, your season level, the daily streak and quests that pay nutrients, while Game is the planet itself.
  3. Your planet Drag to spin it like a globe, tap a land to choose it, and double-tap to send a ripple across the ground and the sea.
  4. Radar The radar finds parts for machines like the Water purifier, which once built make every harvest on every land a little bigger.
  5. Leaderboard The season board ranks every grower by harvest, with a podium for the top three and your own row pinned in the list.
  6. Daily streak Claim nutrients once a day to keep your streak going, and streak milestones bring boxes and a brighter flame.
  7. Inventory The bag holds your boxes, seeds, things to place on your lands, automation days and machine blueprints.
  8. Land card The chosen land’s three actions: Rain when the ground runs dry (crops only ripen while it is wet), Boost to grow it with nutrients, and Harvest once the crop is ripe.

Hover a moment to watch it

  • A planet is born
    A planet is born

    A molten ball cools, plates and relief rise, the sea fills and clouds settle over closed lands.

  • Handled like a globe
    Handled like a globe

    Drag to spin, throw to keep it turning, double-tap for a ripple that crosses ground and sea.

  • Plant a biome
    Plant a biome

    A forest is planted on a land and spreads from its centre as a wave in the seed’s rarity colour.

  • Grow and harvest
    Grow and harvest

    Rain, spores and time ripen the land; the machine scans the crop and it flies to the counter.

  • Plan upgrade
    Plan upgrade

    Each plan has a signature formation, a debris ring and a medal, shown in a short fly-over.

  • Boxes
    Boxes

    Three taps open a box; light leaks through the seams in the colour of the prize.

  • Season leaderboard
    Season leaderboard

    Players rank by harvest; the podium rises and the scores count up.

  • Day and night
    Day and night

    The sky follows the viewer’s local hour: violet air, the moon and shooting stars after dark.

The game on desktop with the planet and the side panel

How it is drawn

  • Three.js r149 with custom GLSL for crust, grass, clouds, water, atmosphere, bark and sky.
  • Per-territory state packed into one small RGBA texture, so a planting spreads as a wave in the shader.
  • The Grower Pass card is raw WebGL2: a tinted plate with up to 180k blades of moss that tilts with the pointer or the phone.
  • Sound and music are synthesised with Web Audio. There are no audio files.
  • Day and night follow the viewer’s local hour, with moonlit nights and an aurora on higher plans.
  • Phone layout with bottom sheets under 760 px, side panel on desktop, quality presets for weaker GPUs.

A pass that isyours on-chain

The way into the season is a Grower Pass: a soulbound NFT on Base whose portrait is generated for each player. Seeds are NFTs too, and planting one burns it. Players never need gas; a sponsor wallet sends the mint.

Grower Pass
The pass card is synthesised: the score counts up, the plate forms, the portrait develops and moss grows in.

From wallet to pass in six steps

  1. Wallet

    EVM wallet linked by signature (injected wallet or WalletConnect).

  2. Telegram

    A one-time deep link starts the bot and links the account.

  3. X

    OAuth link; account age, followers and posts feed the score.

  4. Score

    Wallet age and activity across 6 EVM chains, balance on Base via Chainlink, X and Ethos. Frozen once computed.

  5. Portrait

    AI portrait from the X or Telegram avatar (Gemini or FLUX via fal.ai), NSFW moderation, retries and refunds.

  6. Mint

    EIP-712 permit signed by the server; a sponsor wallet airdrops the pass on Base, with a retrying queue.

  • Soulbound ERC-721

    GrowerPass

    • ERC-5192 locked tokens, one pass per wallet
    • Minted by EIP-712 permit; anyone may relay the transaction
    • Permit epochs, pause, finalise minting, admin revoke
    • Dynamic metadata: the image is rendered by the game’s own WebGL code on the server, and animation_url opens a live 3-tab viewer
  • Soulbound ERC-1155

    GrowerSeeds

    • Five rarity ids; each seed carries its own reference
    • Payable mints at an exact price per rarity, forwarded to a treasury in the same transaction
    • Planting a seed in the game burns it; the first seed is sponsored
    • Foundry unit, fuzz and invariant tests, Slither, OpenZeppelin 5, Safe multisig admin

Quests wherepeople already are

The season runs on a quest and loyalty platform we built alongside it: tasks are verified on Telegram, X, Discord and on-chain, and rewards land in auditable ledgers.

  • Telegram

    Bot, Mini App and quests

    • Account linking through one-time bot deep links
    • Quests: join and stay in channels, reactions, polls, boosts, Premium, Mini App actions
    • Per-player game alerts with an image composed for each player
    • Login widget and Mini App sign-in verified on the server
  • X

    OAuth, score and ~20 task types

    • Follow, like, retweet, quote, reply, mention, hashtag, bio and profile-picture tasks
    • Verified through the X API or a cheaper data provider, with a moderator fallback
    • X data feeds the pass score; the avatar feeds the AI portrait
    • Share-to-X and copy-image from the pass sheet
  • Discord

    Gateway bot and community tasks

    • A persistent Discord Gateway connection
    • Join server, hold or receive a role, boost, messages, reactions, voice minutes, threads
    • Community events with prize pools
  • Referrals and growth

    Invites, UTM and offers

    • Multi-level referral trees with thresholds and bonuses for both sides
    • Admin UTM links and an offers engine (welcome coupon, battle-pass frame, upgrades)
    • Antifraud toolkit: trust score, clusters, funding graph, IP intelligence, CAPTCHA, subnet limits
  • Quest builder

    Admin CRM with about 110 task types, a dependency (DAG) editor, season levels and moderation queues.

  • Partner SSO and embedding

    Players sign in once on the product; the season opens inside it through signed SSO tickets in an iframe.

  • gRPC adapter

    A small service on the product side maps product events to quest markers with YAML rules, then signs, retries and de-duplicates.

  • Ledgers and airdrops

    Append-only reward ledgers with hourly reconciliation; leaderboard snapshots become airdrop weights.

  • Realtime

    socket.io events for completed tasks, rewards and progress, authenticated with JWT.

  • Multi-tenant

    Organisations, roles, white-label branding, API keys, signed webhooks, audit log and GDPR export.

Bots that tradewhile you sleep

Signals become strategy sets of one to ten bots under one control. Each bot family runs as its own .NET service per exchange, written against the exchange APIs directly, with recovery for every order whose outcome is unknown.

Five bot families run as separate services per exchange. Choose one to see where it trades and how it works.

  • BinanceFutures grid
  • BybitOAuth fast connectFutures grid, Spot grid (DCA), Accumulation, Cyclic, Impulse
  • KuCoinOAuth fast connectFutures grid, Spot grid (DCA), Accumulation, Cyclic
  • GateFutures grid, Cyclic
  • BitgetFast API connectFutures grid, Spot grid (DCA), Accumulation
  • BTSEFutures grid, Spot grid (DCA), Accumulation
  • HTXBroker connectFutures grid
  • BingXSpot grid (DCA), Accumulation
  • HyperliquidOn-chain perpsFutures grid
  • One way in, six methods
    One way in, six methods

    Email code, Google, X, Apple, Telegram or a wallet, through one sign-up and sign-in flow.

  • Autotrade by risk
    Autotrade by risk

    Pick a risk level for spot or perpetuals and start; the app shows the expected profile first.

  • Build a strategy
    Build a strategy

    Combine bots into one strategy under a single control, on an exchange account or an on-chain wallet.

  • Copy a public track
    Copy a public track

    Every public strategy shows its real record: what a sum became, over how long, and its worst fall.

  • Connect an exchange
    Connect an exchange

    Fast connect where the exchange supports it, or API keys validated against the exchange.

  • Practice account
    Practice account

    A simulated demo wallet to try strategies before real money.

Hyperliquid perps, signed in-house
  • REST info/exchange APIs with EIP-712 agent signing, tested against the official SDK’s own test vectors
  • The server creates an agent key and approves it from the user’s embedded wallet after the first deposit, then renews it automatically
  • Cross-margin USDC perps, IOC entries with slippage, take-profits as trigger orders
  • Order recovery by client id when a response is lost, nonces in the database, rate limiting across proxy channels
  • Deposits and withdrawals across chains through a bridge; spot-to-perps transfers signed by the server
Coinbase Developer Platform for accounts and wallets
  • One sign-up and sign-in flow: email code, Google, X, Apple, Telegram or a browser wallet (Sign-In with Ethereum)
  • Every user gets an embedded server wallet in Coinbase’s secure enclave; trading always runs from it
  • A policy engine allows only whitelisted typed-data signatures and caps transfer size
  • A reverse proxy keeps sign-in working in browsers whose blockers stop the provider
Signals, AI filter and backtests
  • Signals arrive from TradingView webhooks and MT5, and from an indicator service (Supertrend, RSI) checked trade-for-trade against TradingView
  • An AI step scores each signal; bots skip those below their confidence threshold
  • A deterministic one-minute backtester simulates every bot family, multi-bot sets on a shared wallet, fees, funding and distance to liquidation
  • Publishing to the marketplace needs 14 days in profit and a 12-month backtest verdict, which also sets the risk profile
Reliability and risk controls
  • Unknown order outcomes put a bot into a safe state until an operator restores it
  • Supervisors check strategy sets every 15 seconds and roll back half-started ones
  • A fee gate stops new trades when the fee balance is empty; per-plan capital and account limits
  • IP-weight rate limiters, idempotent withdrawals, admin TOTP with new-device approval, audit trail

How the piecestalk to each other

Two product backends, a fleet of bot services over gRPC, and a separate season platform connected through a small adapter. Contracts on Base are the only shared truth for ownership.

  • Clients Mobile-first app, Telegram Mini App, admin CRM, planet game
  • Users and money Sign-in, Coinbase CDP wallets, billing, referrals (NestJS)
  • Trading backend Signals, strategy sets, autotrade, marketplace (NestJS)
  • Bot services .NET 8, one per bot family and exchange, over gRPC
  • Workers Backtests, market data and indicators
  • Season platform Quests, pass, ledgers (NestJS, PostgreSQL, Redis), linked by a gRPC adapter
  • On-chain GrowerPass and GrowerSeeds on Base; NFT images rendered by the game’s own WebGL code
Simplified. Data: MongoDB for trading, PostgreSQL and Redis for the season platform.

What it is made of

Game and front-end

  • Three.js
  • GLSL
  • WebGL2
  • Web Audio
  • React
  • TypeScript
  • Vite

Backend

  • NestJS
  • Node.js
  • C# / .NET 8
  • gRPC
  • socket.io
  • Quartz

Data

  • MongoDB
  • PostgreSQL
  • Redis
  • Bull

Web3

  • Solidity
  • Foundry
  • OpenZeppelin
  • ethers
  • Base
  • WalletConnect
  • TON
  • Solana

Integrations

  • Coinbase CDP
  • Hyperliquid
  • Telegram
  • Discord
  • X API
  • Gemini
  • fal.ai
  • TradingView

Building somethinglike this?

Trading systems, Web3 products and games that need to work in production. Tell us about yours.