IAMUVIN

Blog

Blog

Technical writing on Web3, AI, and building things. Written by Uvin Vindula.

130 articles · 7 in DeFi Deep Dives

DeFi Deep Dives12 min
IAMUVIN

Stablecoins: How They Actually Work — A Developer's Technical Guide

A technical deep-dive into stablecoin mechanics — fiat-backed reserves (USDT/USDC), crypto-collateralized vaults (DAI/MakerDAO), algorithmic mint-burn models (UST/FRAX), the UST collapse post-mortem, building a minimal collateralized stablecoin in Solidity, Chainlink oracle integration, liquidation engine design, CDP health factors, risk analysis across all three types, stablecoin integrations in DeFi lending and AMM protocols, and what the future holds for on-chain dollars.

U
Uvin Vindula·May 5, 2025
DeFi Deep Dives13 min
IAMUVIN

Decentralized Exchange Architecture: How DEXs Actually Work

A technical deep-dive into DEX architecture — AMM vs order book models, Uniswap V2 and V3 internals, the constant product formula, concentrated liquidity math, router contracts, swap execution flow, slippage and MEV protection, fee tiers, LP economics, building a minimal DEX in Solidity, and how aggregators like 1inch route trades across protocols.

U
Uvin Vindula·March 10, 2025
DeFi Deep Dives12 min
IAMUVIN

Tokenomics Design: A Developer's Guide to Token Economics

A technical guide to designing token economics that actually work — supply mechanics, emission curves, vesting schedules in Solidity, staking incentive math, governance token power dynamics, fee distribution models, and how to distinguish sustainable tokenomics from ponzi mechanics.

U
Uvin Vindula·November 18, 2024
DeFi Deep Dives12 min
IAMUVIN

Yield Farming Explained: A Developer's Technical Guide

A technical deep dive into yield farming — LP token staking mechanics, reward distribution math, auto-compounding vaults with ERC-4626, multi-pool farming architecture, APR vs APY calculations with code, and building farm contracts that don't collapse.

U
Uvin Vindula·September 2, 2024
DeFi Deep Dives13 min
IAMUVIN

DeFi Lending Protocols: How Aave and Compound Actually Work

A deep dive into DeFi lending protocols — utilization rates, interest rate curves, health factors, liquidation mechanics, flash loans, and a Solidity lending pool implementation. How Aave V3 and Compound V3 actually work under the hood.

U
Uvin Vindula·July 8, 2024
DeFi Deep Dives10 min
IAMUVIN

Impermanent Loss Explained with Real Numbers and Math

Impermanent loss explained with actual dollar amounts, step-by-step math, and worked ETH/USDC examples. Learn exactly how much you lose, when IL gets dangerous, and strategies to minimize it as a liquidity provider.

U
Uvin Vindula·May 20, 2024
DeFi Deep Dives13 min
IAMUVIN

Automated Market Makers Explained: How AMMs Actually Work

A deep dive into automated market makers — the constant product formula, concentrated liquidity, impermanent loss with real numbers, and a Solidity AMM implementation from scratch.

U
Uvin Vindula·May 6, 2024