Skip to content
Akinbola0xKENZMAN
Work/Markets & DeFi
Stellar

CosmoDEX

Launch a token, seed a pool and trade it, all on Soroban.

Role
Lead engineer
When
Jun 2025 – Aug 2025
Team
73 of 77 commits
Stack
Rust / Soroban, Next.js, TypeScript
CosmoDEX: screenshot of the live app

Overview

A permissionless DEX on Stellar. Anyone can deploy a token, create a pool for any pair through a factory, add or remove liquidity for LP tokens, and swap with a constant-product formula and a 0.3% fee, including native XLM pools.

The problem

Launching a token and giving it a market on Soroban took several tools and manual contract deployments.

What I built

  1. Token contract: mint, transfer, approve, burn and admin, used for both launched tokens and LP tokens
  2. Pool contract: proportional liquidity, LP mint and burn, and swaps with checked arithmetic throughout
  3. PoolFactory: one pool per pair, deployed and indexed for discovery
  4. Invariant checks covering precision loss, pool initialisation edge cases and reserve imbalance; a public USDC faucet in the UI

Under the hood

How it flows

Stack

Rust / SorobanNext.jsTypeScript