Acc. IX · Ficus limitless — prediction market, cultivated 2023
Limitless Exchange — prediction markets on Base
Founding engineer (fullstack) · Senior Blockchain Engineer · Dec 2023 – Sep 2024 · Limitless Labs
Prediction-markets platform on Base shipping across four codebases — API, smart contracts, indexer, and frontend. Founding-engineering work that helped secure a ~$3M pre-seed led by 1confirmation.
Ficus limitless — prediction market, cultivated 2023
Field notes
The context
Limitless needed a prediction-markets platform on Base where every market is priced by a Gnosis FixedProductMarketMaker deployed deterministically per question. Market creation was manual and error-prone — register the condition, deploy the FPMM, seed liquidity, route through a multisig — every step a chance to lose funds or misconfigure a live market.
Cultivation
What I built
- Led backend development in NestJS + Fastify + TypeScript + TypeORM on PostgreSQL with domain-driven design; environment-specific configuration let the same service safely target Base Mainnet, Base Sepolia, UAT, and local without code changes.
- Migrated the API datastore from MongoDB/Mongoose to PostgreSQL/TypeORM with zero data loss — converting all schemas to entities with proper relationships, composite keys, and a production seeder handling legacy market data transformation.
- Automated end-to-end market creation across frontend → backend → smart contract → Gnosis Safe multisig, collapsing the manual flow into a single operator action behind an internal form, a REST API, and a Gnosis Safe SDK approval link.
- Built custom FPMM contract iterations (v5, v6) extending Gnosis Protocol's Fixed Product Market Maker with modified storage layout and fee logic, plus LMSR market maker integration with WETH9 collateral; authored mock token infrastructure and multi-chain Hardhat deployment scripts across Base, Blast Sepolia, and Sepolia.
- Built the Envio-powered blockchain indexer for FPMM and Conditional Tokens events across Base Mainnet, Base Sepolia, UAT, and local — resolving non-deterministic indexing and BigInt serialization, and implementing smart-account EOA resolution for accurate trade attribution — with CoinGecko-priced Slack and Discord trade-alert bots.
- Built the prediction-markets frontend on Chakra UI with Privy wallet authentication, subgraph-driven data fetching, Farcaster frame integration for market sharing, and a dynamic OG image generator; led the full UI/UX redesign including dark mode, mobile-responsive trading UI, and real-time portfolio calculations.
- Designed bigint formatting and parsing across the frontend/backend boundary so USDC (6 decimals) and ERC-1155 outcome share balances crossed the API without precision loss.
- Wrote comprehensive test coverage against the Conditional Tokens Framework lifecycle (prepareCondition → splitPosition / mergePositions → reportPayouts → redeemPositions) and the market-maker contracts in Hardhat and Foundry.
Root system
How it works
Four codebases, one platform: a NestJS/Fastify API on PostgreSQL; Solidity contracts (custom FPMM v5/v6 + LMSR on the Conditional Tokens Framework) deployed per-question through a deterministic factory; an Envio indexer streaming FPMM and CTF events into the data layer and trade-alert bots; and a Chakra UI + Privy frontend. Gnosis Safe multisig approval sits inside the automated market-creation pipeline as a first-class step.
Harvest
Outcomes
- Founding-engineering work helped secure a ~$3M pre-seed led by 1confirmation (Sep 2024).
- Market creation collapsed from a manual multi-step operational process into a single operator action — significantly reducing manual effort and error risk.
- MongoDB → PostgreSQL migration completed with zero data loss.
- Platform live at limitless.exchange; the CTF foundation shipped in this era still underpins the later CLOB and NegRisk stack.
Automating an operational workflow end-to-end — UI, API, contracts, multisig — is worth more than any single feature: it removes the human from the failure path. And bigint discipline at API boundaries is non-negotiable when 6-decimal USDC meets 18-decimal collateral.