Back to projects

Blockchain Developer

BankChain — Modular DeFi Suite on Polygon

Overview

Four production-grade Solidity contracts form the protocol: Lending (over-collateralized lending pool with interest accrual), Token (ERC20 base), Treasury (protocol-owned liquidity + fee routing), and Vault (yield aggregator strategy wrapper). An AI-agent module wraps the contracts with an autonomous monitor that observes on-chain events and proposes rebalancing. Express + Prisma backend indexes contract events. Hardhat 9.x with optimizer enabled, Polygon Amoy testnet deployment config, Polygonscan verification.

Architecture

┌─────────────────┐     ┌─────────────────┐
│   ai-agent/     │────▶│  contracts/     │
│  (monitor +     │     │  Lending        │
│   rebalancer)   │     │  Token          │
└────────┬────────┘     │  Treasury       │
         │              │  Vault          │
         ▼              └────────┬────────┘
┌─────────────────┐              │
│   backend/      │◀─────────────┘
│  Express+Prisma │   (event indexer)
└─────────────────┘

What Stands Out

  • 4 contracts: Lending (over-collateralized), Token (ERC20), Treasury (POLL), Vault (yield aggregator)
  • Hardhat + Solidity 0.8.20 + OpenZeppelin
  • Autonomous AI agent for on-chain monitoring
  • Express + Prisma backend for event indexing
  • Polygon Amoy testnet deployment + Polygonscan verification
  • Modular architecture — each contract independently upgradeable

Tech Stack

Solidity 0.8.20HardhatOpenZeppelinTypeScriptExpressPrismaPolygonEthers v6

BankChain

Sri Aravindan