Julian Martinez and Chad from AHA Labs demonstrate how to build DeFi applications on Stellar using Soroban smart contracts, covering liquidity pools, swaps, and TypeScript bindings for frontend integration.
This session explores Stellar's role in DeFi through a practical walkthrough of building liquidity pool dApps on Soroban. Julian Martinez from SDF explains DeFi fundamentals, the DeFi timeline, and why Stellar's native AMM combined with Soroban smart contracts enables custom financial instruments. The core technical content covers three essential liquidity pool functions: deposit, swap, and withdraw. Chad from AHA Labs then demonstrates how Soroban's on-chain contract type definitions generate TypeScript bindings and NPM packages, eliminating the need for manual ABI handling and XDR encoding. The presentation includes real code examples showing how frontend developers can interact with smart contracts using native JavaScript BigInt and full type safety, making Soroban development accessible to web developers.