Reference: A DeFi Program + dApp
This reference build walks a minimal lending pool: deposit SOL, mint share tokens, withdraw with pro-rata accounting. It ties together Anchor 0.32.1, LiteSVM 0.6.x tests, and a Next.js dApp using @solana/kit 7.0.0 - the shape most DeFi teams ship.