Neptune Finance
$159.66M+ Loans OriginatedSenior Product, Forward-Deployed, Frontend & AI Engineer · Injective Mainnet
Engineered the web platform and smart-contract integration layer for Injective's leading money market—scaling across 9 lending and 21 collateral markets to $159.66M+ in cumulative loans originated, $27.76M peak gross TVL, and 882,800+ on-chain CosmWasm executions over 1,042+ days of mainnet uptime with $0 bad-debt exploits.
Role
Senior Product / Forward-Deployed / Frontend & AI Engineer
Stack
Next.js, TypeScript, React Query (@neptunefinance/api-v2), @base-ui, Tailwind CSS, CosmWasm, Injective SDK, Figma
Domain
DeFi Money Market / Distributed UI State / AI-Accelerated Engineering
Scope
- -Core platform & smart-contract integration across 9 lending and 21 collateral markets
- -Full-stack read-model migration (@neptunefinance/api-v2) with spec-driven AI agent playbooks
- -Automated on-chain gas telemetry analyzer across 10 tx profiles (15% limit reduction, 7.55M gas saved)
- -Centralized React Query state architecture + 600ms–3.5s state-fingerprinted post-tx polling engine
- -1-click Collateral & Debt Swap UX, 4-layer @base-ui Account Health Bar, and batch Dust Cleanup
- -Executive Tokenomics & Revenue Flywheel suite + self-initiated Balance Menu
- -Live Bech32 wallet-inspection diagnostic console, upstream SDK patches & Hydro / Stride / Mito / Astroport / Skip Go integrations
Protocol Scale & Mainnet Telemetry
All-Time Loans Originated
Peaking at $40.47M/month across 5,580+ active lenders and 2,955 borrower subaccounts.
Peak Total Value Locked
$18.36M DeFiLlama Net TVL + $9.41M peak active borrows across 9 lending & 21 collateral markets.
On-Chain Contract Executions
452,086 direct transactions on the core Neptune Market contract over 1,042+ days uptime ($0 bad debt).
Executive Execution Summary
- Scaled Core DeFi Frontend & Protocol UXArchitected the Next.js/TypeScript web platform and CosmWasm integration layer for Injective's premier money market across 9 lending and 21 collateral markets (1,042+ days mainnet uptime, $0 bad-debt exploits).
- AI-Driven Engineering & TelemetryBuilt spec-driven AI agent guardrails to execute a zero-downtime migration to @neptunefinance/api-v2, plus an automated on-chain gas telemetry analyzer that cut high-complexity gas estimates by 15% (7.55M gas saved).
- Frontend Distributed SystemsEliminated client-side state waterfalls and InfluxDB dependencies with a centralized React Query read model and a state-fingerprinted post-tx polling engine that resolved blockchain indexer lag.
- Product Design & 1-Click DeFi FlowsTurned a 5-step atomic flash-loan + DEX routing flow into a 1-click Collateral/Debt Swap UX, designed a 4-layer @base-ui Account Health Bar with live liquidation modeling, and shipped a real-time Tokenomics & Revenue Flywheel analytics suite.
- Forward-Deployed Triage & Partner IntegrationsBuilt a live production wallet-inspection and RPC-failover diagnostic tool for instant customer debugging, patched upstream EVM/WalletConnect SDK signing bugs, and shipped cross-protocol integrations with Hydro, Stride, Mito, Astroport, and Skip Go.
Context
Neptune Finance is Injective's leading CosmWasm money market, serving 5,580+ active lenders and 2,955 borrower subaccounts across 9 lending pools and 21 collateral markets with 1,042+ days of mainnet uptime and $0 bad-debt exploits.
Operating at real capital stakes required solving distributed blockchain state consistency, transaction gas predictability, multi-wallet EVM/Cosmos signing edge cases, and high-cognitive-load DeFi UX—while designing the complete Figma component system and shipping every workflow in production Next.js and TypeScript.
Deep-Dive Execution Across 4 Pillars
01 // Protocol Scale & Reliability
Engineered the web platform and smart-contract integration layer for Injective's leading money market, scaling to $159.66M+ in cumulative loans originated (peaking at $40.47M/month), $27.76M peak gross TVL ($18.36M DeFiLlama Net TVL + $9.41M peak active borrows), and 882,800+ on-chain CosmWasm executions (452,086 direct Market contract txs) across 5,580+ lenders and 2,955 borrower subaccounts.
02 // AI Engineering & Agentic Velocity
Designed spec-driven AI agent rulesets and verification playbooks to execute a full-stack read-model migration (@neptunefinance/api-v2), and built a telemetry-driven gas estimation analyzer across 10 transaction profiles that reduced high-complexity gas limits by 15% (7.55M gas saved) while preventing out-of-gas reverts.
03 // Frontend Systems & Eventual Consistency
Replaced legacy client-side CosmWasm/InfluxDB state reconstruction with a centralized React Query architecture and engineered a state-fingerprinted post-transaction polling engine (600ms–3.5s adaptive backoff) that eliminated 30-second stale UI states caused by blockchain indexer lag.
04 // Product Design & 1-Click DeFi UX
Abstracted a 5-step atomic flash-loan, DEX routing, and nToken receipt conversion workflow into a 1-click Collateral & Debt Swap UI; designed a 4-layer @base-ui Account Health visualization with real-time liquidation simulation; and shipped a 1-click batch Dust Cleanup flow and executive Tokenomics/Revenue Flywheel analytics suite.
05 // Forward-Deployed Engineering & Ecosystem Integrations
Built an in-production diagnostic console (hot-swappable Bech32 wallet inspection and RPC failover) for rapid live customer triage; diagnosed and patched upstream multi-decimal APY weighting and EVM/WalletConnect SDK signing bugs; and delivered cross-protocol integrations with Hydro (hINJ), Stride (stATOM ICA oracle), Mito, Astroport, and Skip Go.
System Architecture & Implementation
Read Model & Consistency
- Centralized @neptunefinance/api-v2Replaced legacy client-side CosmWasm/InfluxDB reconstruction with typed React Query caching.
- Adaptive Post-Tx Polling EngineState-fingerprinted 600ms–3.5s backoff removing 30s indexer-lag UI stalls.
Gas Telemetry & AI Tooling
- 10-Profile Gas AnalyzerReduced high-complexity gas limits by 15% (7.55M gas saved) without out-of-gas reverts.
- Spec-Driven Agent PlaybooksVerification rulesets guarding zero-downtime API-v2 schema migrations.
Forward-Deployed Triage
- Live Production ConsoleHot-swappable Bech32 address inspection and RPC endpoint failover for instant customer debugging.
- Upstream SDK & Precision FixesPatched multi-decimal APY weighting and EVM / WalletConnect signing failures upstream.
Ecosystem Integrations
- Liquid Staking & OraclesHydro (hINJ) and Stride (stATOM ICA oracle) collateral markets.
- Liquidity & RoutingMito automated vaults, Astroport AMM pools, and Skip Go cross-chain routing.
1-Click DeFi Flows & Feature Gating
- Atomic Collateral & Debt Swaps5-step flash-loan, DEX routing, and nToken receipt conversion compressed into one action.
- Tokenomics, Dust & GatingBatch 1-click Dust Cleanup, Revenue Flywheel analytics, NEPT staking tiers, and geographic compliance gating.
UX & Product Design
- ✦1-click Collateral & Debt Swap workflow abstracting 5-step atomic flash-loan and DEX routing sequences
- ✦4-layer @base-ui Account Health visualization with real-time liquidation threshold simulation
- ✦1-click batch Dust Cleanup across dormant subaccount balances and Executive Tokenomics / Revenue Flywheel charts
- ✦Unified Figma component tokens synchronized with Tailwind CSS and accessible @base-ui primitives
Landing Pages
- ✦Data-driven visuals (interest rates)
- ✦Consistent product + marketing UX
Self-Directed Feature: Balance Menu
The wallet area showed only an address and a disconnect button, dead real estate at the most-visited point in the UI.
I identified the gap independently, designed the solution in Figma, and built it in production without a brief. The redesigned balance menu surfaces an asset chart and table, customisation toggles, and an inline swap, allowing users to act without breaking their current flow.
Outcome: users cited it as one of the most useful additions to the product. Teammates began referencing it as the standard for how to approach UI improvements across the app.
Design System
- ✦Custom Figma component library
- ✦Consistent visual identity
- ✦Reusable assets
- ✦Midjourney-assisted exploration
Features
Feature Deep Dives
Impact & Outcomes
- ✦$159.66M+ cumulative loans originated (peaking at $40.47M/month), $27.76M peak gross TVL ($18.36M DeFiLlama Net TVL), and 882,800+ on-chain CosmWasm executions across 5,580+ active lenders and 2,955 borrower subaccounts
- ✦1,042+ days of mainnet uptime with $0 bad-debt exploits across 9 lending and 21 collateral markets
- ✦15% high-complexity gas limit reduction (7.55M gas saved) across 10 transaction profiles via automated telemetry profiling
- ✦Eliminated 30-second indexer-lag stale UI states via the centralized @neptunefinance/api-v2 React Query read model and 600ms–3.5s adaptive backoff polling
- ✦Expanded ecosystem liquidity and borrower UX with Hydro (hINJ), Stride (stATOM), Mito, Astroport, and Skip Go integrations alongside 1-click swaps, batch Dust Cleanup, and the unbriefed Balance Menu