Skip to content
View ChapuKosi's full-sized avatar

Highlights

  • Pro

Block or report ChapuKosi

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
ChapuKosi/README.md

Bhanu Jangid

Smart Contract Developer · Open to Remote

📧 bhanujangid0212@gmail.com · 🐙 github.com/ChapuKosi · 🐦 @_bhanujangid · 📍 India


Summary

Solidity developer focused on protocol and DeFi infrastructure, building independently since May 2024. Delivered three end-to-end projects: a gas-optimized constant-product AMM with flash swap support and 128K-iteration fuzz testing, a UUPS upgradeable vault with namespaced storage and full upgrade lifecycle coverage, and a multi-contract escrow marketplace with dispute resolution and 35 passing tests. Strong grasp of invariant reasoning, storage layout safety, and upgrade security. Open to remote roles in DeFi protocol development or smart contract engineering.


Technical Skills

Area Details
Languages Solidity (0.8.x), Rust, Noir, JavaScript
Protocol Engineering Constant-product AMMs (x*y=k), flash swap callbacks, liquidity mint/burn accounting, UUPS proxy pattern (ERC1967), namespaced storage layout, state machine design, upgrade authorization, SafeERC20, ERC20 integrations, fee modeling, gas optimization (storage packing, custom errors, immutable variables, via-IR compilation)
Security & Testing Checks-Effects-Interactions, reentrancy mitigation, invariant & fuzz testing, upgrade lifecycle testing, access control modeling, storage collision prevention, circuit breaker / pause patterns
Tooling Foundry (forge, anvil, scripting), OpenZeppelin (standard & upgradeable v5), Git / GitHub, GitHub Actions CI

Projects

Gas-optimized Uniswap V2-style constant-product AMM — Solidity 0.8.30, Foundry — Deployed on Sepolia

  • Implemented swap, mint, burn, and flash swap logic; enforces x*y≥k invariant with 0.3% fee adjustment
  • Packed two uint112 reserves into a single storage slot (~5,000 gas saved per update); enabled via-IR compilation to resolve stack-too-deep on swap()
  • Applied reentrancy lock on all external entry points; minimum liquidity lock (1,000 LP tokens burned to address(0)) prevents price manipulation at bootstrap
  • Wrote 10 unit tests + 2 invariant tests (256 rounds × 500 calls = 128,000 fuzzing iterations) verifying k never decreases and reserves always match balances — 86.25% coverage, 92.39% on main contract

Deployed (Sepolia): AMMPair · Token0 · Token1


UUPS upgradeable ERC20 vault with namespaced storage — Solidity 0.8.30, Foundry, OpenZeppelin — Deployed on Sepolia

  • Isolated vault state under a keccak256("fee.vault.storage.v1") namespaced slot, preventing collisions with ERC1967 proxy metadata and inherited contract storage
  • Built V1 (basic deposit/withdraw) → V2 upgrade path adding configurable withdrawal delays, per-transaction limits, and pause mechanism; V2 strictly appends fields to preserve slot alignment
  • Used reinitializer(2) to ensure V2 init runs exactly once post-upgrade; owner-only _authorizeUpgrade() blocks unauthorized upgrades — verified by test
  • 7-test upgrade lifecycle suite validates state continuity (balances & owner preserved), V2 restriction enforcement, and unauthorized upgrade rejection

Deployed (Sepolia): Proxy · V1 Implementation · V2 Implementationlive V1→V2 upgrade on-chain


P2P escrow system with arbitration — 4 contracts, Solidity 0.8.20, OpenZeppelin — Deployed on Sepolia

  • Factory pattern deploys isolated Escrow.sol instances; 6-state machine (Created → Accepted → Completed / Disputed → Resolved [Buyer/Seller/Split]) with strict transition guards
  • Supports ETH and ERC20 payments via SafeERC20; ArbitratorRegistry manages reputation-based arbitrator pool with configurable fees and automatic deactivation for inactivity
  • Gas-optimized with custom errors, immutable variables, struct packing, and event-over-storage pattern — ~25% aggregate gas reduction; circuit breaker pause on factory
  • 35 tests across Escrow.t.sol (18) and EscrowFactory.t.sol (17); 100% pass rate covering all state transitions, access control, timelock claims, and edge cases

Deployed (Sepolia): EscrowFactory · ArbitratorRegistry · MockUSDC · MockDAI


Education & Background

Cyfrin Updraft — Structured Web3 developer program covering DeFi protocols, smart contract security, and advanced testing · 2024–2025

  • Completed Uniswap V2 & V3 deep dives, advanced Foundry testing & fuzzing, and smart contract security fundamentals — applied directly in all three portfolio projects
  • Additional coursework in ZK proof basics and Noir circuits, EVM assembly, and Rust

Independent Development · May 2024 – Present

  • All three projects designed and owned end-to-end: architecture, design decisions, invariant reasoning, and test strategy driven independently — with AI tooling used for implementation assistance
  • Reference implementations studied: Uniswap V2 core contracts and OpenZeppelin upgradeable libraries, used to inform — not copy — implementation choices
  • All work public on GitHub with CI pipelines configured on all three repositories

Pinned Loading

  1. AMM-V2-implementation AMM-V2-implementation Public

    Gas-optimized Uniswap V2-style AMM with 86% test coverage. Built with Solidity 0.8.30 & Foundry. Features reentrancy protection, storage packing, and invariant testing.

    Solidity 1

  2. Upgradeable-Fee-Vault Upgradeable-Fee-Vault Public

    UUPS upgradeable fee vault using namespaced storage layout. Built with Solidity 0.8.30 & Foundry. Demonstrates secure upgrade authorization, state continuity across versions, pausable withdrawals, …

    Solidity

  3. Decentralized-Escrow-Marketplace Decentralized-Escrow-Marketplace Public

    A decentralized P2P escrow marketplace built with Solidity. Features multi-token support, dispute resolution with arbitrators, and comprehensive test coverage. Portfolio project demonstrating smart…

    Solidity

  4. Staking_contract Staking_contract Public

    A simple decentralized staking platform built with Solidity, featuring an ERC20 reward token and a staking contract. Users can stake ETH, earn reward tokens over time, and withdraw both their ETH a…

    Solidity

  5. FlashLoanVault FlashLoanVault Public

    FlashVault is a gas-efficient ERC-4626–inspired vault that supports dynamic-fee flash loans using ERC-3156. Users can deposit ERC-20 tokens to mint shares, earn yield from flash loan fees, and with…

    Solidity

  6. buy-me-a-coffee-dapp buy-me-a-coffee-dapp Public

    A minimal Web3 dapp where users can "buy you a coffee" by sending ETH. Built with Solidity, HTML, and JavaScript, this project demonstrates wallet connection, contract funding, balance tracking, an…

    JavaScript