Marat Nusurov

Flash Loans 2.0

Company: HodlTree
Role: Senior Solidity Developer
Stack: Solidity 0.7.2 · OpenZeppelin Upgradeable · Truffle · Mocha/Chai · Web3.js
Period: 09/2020 - 06/2021

Overview

Production-grade Ethereum smart contract protocol enabling flash loans and cross-stablecoin swaps through a sophisticated multi-token liquidity pool. The system aggregates five major stablecoins (sUSD, GUSD, USDC, DAI, TUSD) with decimal normalization to manage different token standards. Deployed on mainnet after Certik audit, supporting real-world stablecoin liquidity aggregation and flash loan arbitrage strategies with exhaustive test coverage including mainnet fork testing.

Technical Scope

Multi-Token Liquidity Pool

Flash Loan Mechanism

Exchange Contract

Key Engineering Decisions

Decision Rationale
OpenZeppelin upgradeable proxies Enable live protocol improvements after mainnet deployment without state migration
1e36 fixed-point precision Handles arbitrary token decimals (6-18) across five stablecoins without precision loss
Role-based access control Separate admin and pauser roles limit blast radius of key compromise
Exchange via flash loan callback Atomic swap with zero capital requirement; single transaction execution avoids MEV exposure

Audit Record

Auditor Date Scope Link Archived
CertiK June 2021 Flash loan mechanism, reentrancy guards, access control Skynet Local Copy

Technical Insights

See HodlTree page for additional context.