Paralend: extremely fast DeFi lending via parallel execution & netting on Arcology
Paralend is a high-performance DeFi lending protocol that achieves 100-500x throughput improvement over traditional protocols like Compound and Aave. Built on Arcology Network, it leverages parallel execution to process thousands of lending operations simultaneously.
The core innovation is netting optimization: instead of updating global state (totalSupply, totalBorrows) for every single transaction, Paralend collects operations in parallel during Phase 1, then in Phase 2 calculates net flows (deposits minus withdraws, borrows minus repays) and updates state just once. This reduces state writes by 99% for large batches.
Paralend forks Compound V2's battle-tested lending logic and wraps it in a parallel batching layer using Arcology's concurrent primitives (Runtime.defer, U256Cumulative, Multiprocess). It also accrues interest once per market instead of per transaction, and enables parallel liquidations that prevent death spirals during market crashes.
The protocol includes full collateral management, safe borrowing checks, liquidation system, and comprehensive benchmarking scripts demonstrating scalability from 10 to 1000+ parallel operations.
Paralend is built on Solidity 0.7.6 to maintain compatibility with Compound V2, which we forked for proven lending logic. The architecture has three layers:
Notable hack: We pack borrower address and repayAmount into a single uint256 for liquidations (upper 160 bits + lower 96 bits) to fit into the concurrent container structure, avoiding complex nested mappings.
Testing uses Hardhat with @arcologynetwork/frontend-util for generating parallel transactions and batch processing simulation.

