All reference builds
Reference buildDeFiSmart contractsWeb app

A multi-chain lending protocol built to be safe on day one.

Core contracts, a liquidation engine and a real-time risk dashboard for a DeFi team launching on Ethereum, Base and Arbitrum.

Lending protocol & dashboard
TYPE
Reference build · concept work
BUILT FOR
DeFi teams launching a lending market
TYPICAL TIMELINE
4–6 months to mainnet
SERVICES
STACK
SolidityFoundryChainlinkNext.jsThe GraphPostgreSQL
The problem

Most lending launches start with a whitepaper, a tokenomics model and a date — and a liquidation design that stops paying out in volatile markets. The protocol has to be safe from the first block, and the dashboard has to make risk legible to ordinary users.

How we build it

We model the interest-rate curve and liquidation incentives before writing contracts, then build the suite as isolated markets so a bad asset can never drain the pool. A Next.js dashboard reads indexed data via The Graph and shows health factors, APYs and utilisation in real time.

BUILT TO
0
Critical findings — the audit gate we require before mainnet
Isolated
Markets — one bad asset can never drain the shared pool
3
Chains from launch — Ethereum, Base, Arbitrum
Live
Risk — health factors and APYs indexed in real time
01

Isolated markets, shared liquidity view

Each asset lives in its own market with its own risk parameters, so a depeg or oracle failure is contained. The dashboard still presents a single portfolio — users see one balance, one health factor, one borrow limit.

Isolated markets, shared liquidity view
02

A liquidation engine that stays profitable

We simulate 2021–2024 volatility against the proposed close factor and bonus curve, look for scenarios where liquidators would not act, and redesign the incentive to scale with health-factor deficit until bad debt in simulation is near zero.

A liquidation engine that stays profitable
03

Audit-ready from the first commit

Invariant and fuzz tests run in CI from week one. The audit pack — threat model, architecture, test coverage — is ready before the auditors are booked, so remediation is a two-week window rather than a launch delay.

Audit-ready from the first commit

Building something like this?

Tell us about it. A reference build is where we start — your product is where we end up. We reply within one business day.