← Back to home

Merkle

We allow Uniswap V3 Liquidity provider to Borrow USDC against their positions.

Screenshots

Merkle screenshot 1
Merkle screenshot 2
Merkle screenshot 3
Merkle screenshot 4
Merkle screenshot 5

Problem Statement

Merkle allows UniswapV3 LP holders to borrow USDC against their positions. It is built in a way that anyone can write an "AssetClass" contract that when approved, can be used as collateral in Merkle.This platform is different than Compound, Aave & others because it allows borrowers to deposit complex assets (and not just tokens).The first use case of this lending platform is UniswapV3. UniswapV3 LP positions are represented as NFTs, and cannot be deposited in any lending protocol today, however, they hold more than $5B in value. Merkle will allow UniswapV3 liquidity provider to leverage their positions by borrowing against them.As the DeFi ecosystem evolves and assets become more complex, a lending platform that can accommodate them is needed.

Solution

I used hardhat to build my contracts, wagmi to build the UI (with react).I built 3 contracts in total:Controller.sol: Makes sure that borrowers always have enough collateralUniswapV3.sol: An asset class that can be deposited for collateral.MToken.sol: A ERC-4626 compliant vault where lenders can deposit USDC to be borrowed

Hackathon

ETHOnline 2022

2022

Prizes

  • 🏆

    7️⃣ Polygon — Top 7

Contributors