project screenshot 1
project screenshot 2
project screenshot 3

Real Lend

Borrowers pledge real-world assets as collateral. An oracle sets the asset’s value and posts a bond. Lenders provide loans with interest. If borrowers default, lenders sell the asset to the oracle to recover funds. Loans can also be sold early through Dutch auctions.

Real Lend

Created At

ETHGlobal San Francisco

Project Description

Real Lend bridges real-world assets (RWAs) with decentralized finance, allowing borrowers to unlock liquidity and lenders to earn yields. Borrowers pledge assets like vacation cottages as collateral, with an oracle setting the value and posting it as a bond to guarantee the lender’s recovery. Lenders provide loans (e.g., 100k USDC at 10% interest) based on the asset's value. If the borrower repays, they reclaim the asset; if not, the lender recovers funds by selling the asset to the oracle at the bonded value. Lenders can exit early by selling their loan position through a Dutch auction, which starts at a high price and drops until purchased. Pools on protocols like Morpho improve liquidity, ensuring a smooth, secure, and flexible lending experience for both parties.

How it's Made

We built a decentralized protocol for real-world asset lending using Solidity smart contracts and the Foundry toolkit. Our core components include USDC.sol for managing loan payments, Cottage.sol to tokenize real estate collateral like vacation homes, and Protocol.sol to oversee loan issuance, repayments, and defaults. An oracle sets asset values and posts bonds, ensuring lenders are protected by guaranteeing recovery if borrowers default. In such cases, lenders can recover their funds by selling the assets to the oracle at the bonded value. To offer flexibility, we implemented a Dutch auction mechanism in DutchAuction.sol, allowing lenders to exit their loan positions early by dynamically selling them as prices adjust over time.

We streamlined deployment using Foundry tools such as forge and automated the process with custom Bash scripts for contract deployment and verification. Anvil was used to fork the Ethereum mainnet locally, creating realistic test environments that simulated live network conditions. This setup allowed us to efficiently identify and resolve issues before deployment. Our automation framework ensured a seamless and repeatable workflow, making the development process smooth and scalable from testing through deployment.

background image mobile

Join the mailing list

Get the latest news and updates