skip to content
[··]nano-os v7.0 — booting portfolio
revival nano adolor
senior frontend engineer
00%

Despace Protocol

A multi-chain DEX: swap, bridge, pools, staking, lending.

Led frontend development of a multi-chain decentralised exchange — swapping, liquidity pools, cross-chain bridging, staking, lending and an NFT marketplace — and re-architected its core modules along the way.

role
Frontend engineer · led the DEX front end
year
2022 — 2024
platform
Web · Ethereum, BNB Chain, Polygon
live
private
stack
Next.jsTypeScriptRedux Toolkitweb3-reactethersstyled-componentslightweight-charts
despace · swap
DeSwap — market chart and swap panel
despace · bridge
Bridge tokens between Ethereum, BNB Chain and Polygon
wallet ● Bitkeep connected
Next.js SSR · page load −30%
ETH → Polygon · USDC 230.23
+15%
daily trading volume
−30%
page load with Next.js SSR
+20%
efficiency from the module rework

$ ls ./screens

8 screens · scroll →
despace · swap
DeSwap — market chart and swap panel
DeSwap — market chart and swap panel
despace · overview
Overview — DES price, swap info and analytics
Overview — DES price, swap info and analytics
despace · bridge
Bridge tokens between Ethereum, BNB Chain and Polygon
Bridge tokens between Ethereum, BNB Chain and Polygon
despace · pools
Pool detail — TVL, fees, volume and transactions
Pool detail — TVL, fees, volume and transactions
despace · staking
Staking — farms, rewards and vesting
Staking — farms, rewards and vesting
despace · lending
Lending — supply and borrow markets
Lending — supply and borrow markets
despace · nft
NFT marketplace
NFT marketplace
despace · auction
NFT auctions
NFT auctions

The problem

Despace set out to be one place for a DeFi user's whole day: swap a token, bridge it to another chain, provide liquidity, stake the rewards, borrow against what you hold — and, later, trade NFTs. Each of those is a product on its own, and each one has to speak to several chains and several wallets without the interface falling apart.

What I built

I led frontend development of the multi-chain DEX, on Next.js and TypeScript with Redux Toolkit for app state and web3-react plus ethers for wallets and contracts.

  • DeSwap — token swaps with market charts and a swap panel that quotes as you type.
  • Bridge — moving tokens between Ethereum, BNB Chain and Polygon, with network pickers, amounts, a destination address and the gas and bridge fees laid out before you confirm.
  • Pools — liquidity pools with TVL, fees, volume history and a live transactions table.
  • Staking and lending — farms, rewards and vesting; supply and borrow markets with collateral rules surfaced in the UI.
  • NFT marketplace — collections, listings and timed auctions.
  • A custom Bitkeep wallet connection, alongside the standard connectors, so users of that wallet weren't left out.

The hard part

A DEX front end is mostly state that someone else owns: balances on three chains, prices that move every block, transactions that are pending, then confirmed, then sometimes not. I re-architected the core frontend modules so that state had clear owners and the screens stopped re-deriving it — a roughly 20% efficiency gain and 5% fewer bugs.

Then performance: moving the heavy pages to Next.js server-side rendering cut page load time by 30%, which matters a lot when the first thing a trader sees is a chart.

Outcome

  • Contributed to a 15% increase in daily trading volume.
  • One interface across swap, bridge, pools, staking, lending and NFTs, on three chains.
next case study →SolarchainWeb3-powered solar, metered in an app
✓