Codexsha
Index

N° 02 / sha ac6052b

DeFi App / Base

Live

BStocks

Self-custodial interface for Coinbase Tokenized Stocks on Base with live prices, best-route trading, baskets, recurring plans, yield and gifting.

Group
Onchain
Started
2026
Status
Public repository with a live app at basestocks.finance on Base; no license has been chosen yet.

Overview

Every quote compares several DEX aggregators, including KyberSwap, Velora, the Uniswap Trading API, Aerodrome and CoW Protocol, with exact approvals and simulation before signing. It also covers baskets and onchain auto-invest, Earn through Morpho, Aave V3 and Compound v3, gift links and pools, a portfolio view and a fenced AI assistant, without holding keys or funds.

What it does

  1. 01Markets for 13 stocks with DEX price, Chainlink reference, candles and volume
  2. 02Trade routing across several DEX aggregators, plus cancellable limit orders
  3. 03Baskets and auto-invest plans enforced onchain by the AutoInvest contract
  4. 04Earn: idle USDC into Morpho vaults, Aave V3 and Compound v3
  5. 05Gift links and gift pools backed by an ownerless escrow with sponsored claims

How it is built

A single Next.js 16 App Router app with server-side quote and provider routes, optional Supabase persistence and an optional Upstash Redis cache tier. Foundry contracts (AutoInvest, GiftEscrow, GiftPool) back auto-invest and gifting, and a Vercel cron route refreshes discovery and status probes.

Stack

Next.js / React / TypeScript / Tailwind / Wagmi / Viem / Supabase / Solidity / Foundry / Zod