back to projects

deep dive — defi lending

Run a lending book from the Lenders Portal

The Lenders Portal is the liquidity-provider side of Lavarage. It's where lenders create loan offers, set their own terms, and watch how the borrowers drawing on their capital are performing. Access is permissionless but gated by a Lava Rock NFT, and lenders can run offers actively, stake passively, or backstop liquidations. As one of the engineers on the portal, I worked on the dashboard that turns a stream of raw on-chain lending positions into something a liquidity provider can actually read and manage.

Full-stack Engineer

ReactTypeScriptNestJSSolana
trader volume funded by lender liquidity
$200M+
lender roles — active, passive, liquidator
3
position and liquidation monitoring
Real-time

01Overview

The whole lending book at a glance

A lender lands on a dashboard built to answer one question fast: how is my capital doing right now? The stat cards up top show Total Liquidity Deployed, Active Positions, the count of positions running hot above 75% LTV, and Total Pending Interest — the money currently owed but not yet claimed. Below that, a Recent Offers list and a Quick Actions panel put the next move one click away.

The walkthrough here moves through the portal the way a lender would: check the headline numbers, glance at recent offers, then jump into creating a new one or reviewing positions. The whole thing is designed so a liquidity provider can get a read on their book in seconds rather than parsing raw chain data.

Lavarage Lenders Portal dashboard with stat cards for total liquidity deployed, active positions, high-LTV positions, and pending interest

02Loan offers

Set your terms, token by token

Active lenders don't lend into a generic pool — they create loan offers, each one scoped to a specific token with its own APR and LTV terms. The offers table lays out every offer the lender runs: the token, the APR they're charging, current utilization, max exposure, available liquidity, the LTV ceiling, and whether the offer is active or paused.

Edit and pause controls sit right on each row, so a lender can retune an offer or pull it entirely as market conditions shift. That's the core lever of being an active lender: you decide which long-tail tokens you're willing to back, at what rate, and against how much collateral.

Lavarage Lenders Portal loan offers table listing per-token offers with APR, utilization, max exposure, available liquidity, LTV, and status

03Risk

Watching the positions your capital backs

Every offer a lender makes ends up collateralizing borrower positions, and the Position Monitoring page is where those get tracked in real time. It rolls up the totals — positions outstanding, interest earned, average APR — and then lists each borrower position with its opened date, asset, borrowed amount, current LTV, liquidation price, APR, and accrued interest.

The part that matters most is the risk column. Positions are flagged High or Medium risk with color-coded badges as their LTV climbs toward liquidation, so a lender can see trouble building before it becomes a loss rather than after.

Lavarage Lenders Portal position monitoring page tracking borrower positions with LTV, liquidation price, APR, accrued interest, and risk badges

04Liquidations

When a position crosses the line

When a borrower position breaches its liquidation threshold, it gets closed out, and the Liquidations log is the lender's record of what happened. Each event shows the liquidation timestamp, the position ID, the amount borrowed, what the collateral actually sold for after fees, and the claim status — including funds already returned to the lender's wallet.

Every line links straight to the on-chain liquidation, sell, and send transactions, so nothing has to be taken on trust. Under normal circumstances, lenders are shielded from the bad-debt side of a liquidation; this log is where that protection becomes something they can audit for themselves.

Lavarage Lenders Portal liquidations event log showing timestamps, position IDs, borrowed amounts, sale proceeds, claim status, and on-chain transaction links

outcome

The supply side, made legible

The Lenders Portal gives liquidity providers everything they need to run a lending book on Lavarage: create and price loan offers, monitor the borrower positions their capital backs in real time, and audit liquidations down to the on-chain transaction. It's the supply side of a protocol that has funded over $200M in leveraged trading volume for long-tail assets.