Marat Nusurov

Lend & Borrow Protocol

Company: HodlTree
Role: Senior Solidity Developer
Stack: Solidity 0.8.0 · Aave V2 · Chainlink Oracle · Truffle · OpenZeppelin · Web3.js
Period: 09/2020 - 05/2021

Overview

Decentralized lending and borrowing protocol on Polygon and Ethereum enabling users to deposit collateral, earn multi-layer yields through Aave integration, and borrow against their holdings with dynamic risk management. The system uses Chainlink price oracles for accurate asset pricing and implements sophisticated liquidation mechanics to maintain protocol health. Supports multiple collateral types (USDC, DAI) and denominations (wMATIC, wETH) with per-token yield strategies.

Technical Scope

Dual-Contract Architecture

Aave Yield Integration

Dynamic Risk Management

Liquidation Mechanism

Fee Distribution System

Key Engineering Decisions

Decision Rationale
Dual-contract (Lender/Borrower) Clear separation of concerns; lenders unaware of borrower risk; independent token economics
Aave collateral deposits Free yield generation on locked collateral; leverages battle-tested Aave V2 risk management
Chainlink oracle feeds Decentralized price feeds eliminate single-point-of-failure pricing; 8-decimal standardization reduces implementation risk
ECDSA fee signatures Off-chain computation reduces gas costs while maintaining on-chain verification; enables batched fee claims
20% liquidation bonus Aggressive incentive attracts liquidators; maintains protocol solvency during market volatility

Technical Insights

See HodlTree page for additional context.