project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

GHOPIX

We created a lending protocol with Sablier NFTs as collateral. It enables borrowing against assets locked in Sablier. Imagine using your salary as collateral.. etc

GHOPIX

Created At

LFGHO

Project Description

Our alpha will be out at: https://ghopix.onrender.com/

Contracts are ready at https://github.com/scorpion9979/lfgho-24-contracts

Front End over at https://github.com/ivcained/ghopix1

We created a lending protocol with Sablier NFTs as collateral. It enables borrowing against assets locked in Sablier. Imagine using your salary as collateral.. etc

We integrate NFTs as collateral by valuing them based on their underlying ERC20 assets. To achieve this, we leverage Chainlink price feed operators.

The Chainlink operators source real-time price data for ERC20 tokens from numerous exchanges. They aggregate this data into a single reference price for each token that our smart contracts can query.

When a user deposits an NFT as collateral, our contracts call the Chainlink price feed to retrieve the current market price of the NFT's backing ERC20. This on-chain price is used to assign a dollar value to the NFT for collateral purposes.

Validating Acceptable NFT Collateral

We check deposited NFTs to ensure:

The NFT's underlying ERC20 is supported by our Chainlink price feed integration. This confirms we can reliably value the NFT. The Sablier stream for the NFT is non-cancellable. This prevents the money streamer from revoking the stream mid-loan, protecting the lender. By programmatically validating these conditions, we guarantee loans have adequate NFT collateral before distributing funds.

How it's Made

We used foundry for contract creation, react for front end, third web for account abstraction. Account abstraction can be accessed at https://ghopix.onrender.com/

Foundry for contract development, react, three.js, third web for ease of upscalability and ability to deploy multi chain.

background image mobile

Join the mailing list

Get the latest news and updates