sudotx / Lenda

Home Page:lenda.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LENDA <- click me

Description

This repository contains the smart contracts source code for Lenda Lending Protocol. The repository uses Hardhat as development environment for compilation, testing and deployment tasks.

Lenda is a simple but powerful decentralized NFT lending protocol where users can participate as depositors or borrowers. Depositors provide liquidity to the market to earn a passive income, while borrowers are able to borrow in an overcollateralized fashion, using NFTs as collateral.

Use cases

Lenda offers users a way to draw capital against their non-fungible collateral

Setting up

# Get the latest snapshot git clone https://github.com/okekefrancis112/Lenda.git

# Copy .env.example to .env cp .env.variable.env variable.env

# Install dependencies yarn install

# Then simply start your app yarn run dev

List of Packages

Dependencies are managed through package.json

Contributing

**Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated** **

  1. Fork the Project

  2. Create your Feature Branch (**git checkout -b feature/AmazingFeature**)**

  3. Commit your Changes (**git commit -m 'Add some AmazingFeature'**)**

  4. Push to the Branch (**git push origin feature/AmazingFeature**)**

  5. Open a Pull Request**

Roadmap

See the for a list of proposed features (and known issues). open issues

Team

@Kayzee @CodeBlooded @OC @AspireDev @Dave

Architecture Overview

Users of the Lenda protocol which are either the depositors or borrowers interact with one another, the depositors deposit into the reserve contract and the borrowers can then take a loan from using a list of blue chip NFTs to be used as collateral for the position from the assets in reserve contract. When depositors deposit using the protocol,they are given DMatic which can then be staked in the yield contract to earn LND which can be used as passive income since the Token will be liquidity backed and transferable. This way the depositors are also earning from the interest accrued by the Borrower

Contract Architecture

We detailed the core contracts in the Lenda protocol.

The core contract is the Lenda pool and which inherits from the LendaReserve Contract, the BMatic contract, collateral storage contract and other token standard importation with some libraries

Lendpool

This contract holds logic enable NFT owners create a loan, repay a loan

https://mumbai.polygonscan.com/address/0xD287cc4B99cA787c0d7F949deD9961531aEda71E#readContract

DepositorToken (Lenda)

This contract holds logic of the depositor token

https://mumbai.polygonscan.com/address/0x20Cbc4f9070010e03C53Ae863D9a083f65Ed97C9#code

BorrowerToken (BMatic)

This contract holds the logic of the token is pegged to the amount a borrower borrowed with the interest accrued. Borrower must repay with an equal amount of Bmatic to acquire back their collateral

Yield

This contract holds logic used to incentivize users, 0.4LND is minted per seconds which is shared among all farmers that locked their DMatic token. Farmers can check the possible amount of LND they will receive base on their DMatic locked

https://mumbai.polygonscan.com/address/0x3B6871FC9BfBf0b53eB7f4FDC78059b54c4e0525#code

Reserve

This contract holds the logic responsible for holding matic deposit of depositors/lenders

PriceOracle

This contract holds logic which is used to get the onchain data of NFT floor price across all NFT platforms. To deduce Lenda NFT worth

NftCollateral storage

This contract is responsible for holding borrowers collateral

List of contract addresses of allowed NFTs

https://mumbai.polygonscan.com/address/0xB72705c99DF57aE0B4aedD0B20a69D809db9136E "cryptopunks"

https://gateway.pinata.cloud/ipfs/Qmboh4dbuKusyfYbJdbqXwY5cLNWMcM8Q65nZk11modLnc URI TO MINT

https://mumbai.polygonscan.com/address/0xB50285433aAda7261A8F518E25128Ee0ED1DFcA2 "Azuki"

https://gateway.pinata.cloud/ipfs/QmXqDU5mrC1mpX9PvawV6dpwV13kVWrHgrLbxA6WYVp9cg URI TO MINT

https://mumbai.polygonscan.com/address/0x6730E0C8910218d64DEf48Dc0434f41CAe2F3630 "BoredApeYachtClub"

https://gateway.pinata.cloud/ipfs/QmU46CbWShYjfDHKR59udtbqjKtLfNeYP28ovowt51RQL5 URI TO MINT

https://mumbai.polygonscan.com/address/0x2243DD81C21ad104DBe6D3e12CfC9e3db38A4932 "CloneX"

https://gateway.pinata.cloud/ipfs/Qma4yTxsptYsyeebDVkdymgAXj1pzZCEQyvT8WRaKvzfhN URI TO MINT

https://mumbai.polygonscan.com/address/0xf150f26D794e3d1129dD4c2AF356Da1a76dDeDaE "Cool Cats"

https://gateway.pinata.cloud/ipfs/QmepETVdZvjQw2ou3G483JQ9386J8nc7UjCAKYN1ZTz7xH URI TO MINT

https://mumbai.polygonscan.com/address/0xd17bFB32Fe23e731f4Aa23D87686aA29c01aCCC6 "Cryptoadz"

https://gateway.pinata.cloud/ipfs/Qme8euKZjziaq2D9ES2XGrEJQMArNnZVNCHvc5eRyvFbTu URI TO MINT

https://mumbai.polygonscan.com/address/0xde0b1D6d5c39f9b64C439dB6B0F8B116Ea9F818f "Doodles"

https://gateway.pinata.cloud/ipfs/QmYeoWJQ9wHsJCxujkRKykGJ99LSVF7nriLkrmGc1vuBRj URI TO MINT

https://mumbai.polygonscan.com/address/0xcEE4593b3Abd20D75B421F34D93e45F838311C28 "MutantApeYachtClub"

https://gateway.pinata.cloud/ipfs/QmQQgrL8J2doZbUXibjPQnGZgjMfaDRJD3ZzkbiHhD86ok URI TO MINT

https://mumbai.polygonscan.com/address/0x4a0039c8D8C54A25Ebc718e278613921E938720D "VeeFriends"

https://gateway.pinata.cloud/ipfs/QmWrm8hBp9vKUadayBuNEz6F8G2oSKgTHGrXiewUmePW1Q URI TO MINT

https://mumbai.polygonscan.com/address/0xE35546d6418f206DE55eC67b4BCEF010322B8C50 "World of Women"

https://gateway.pinata.cloud/ipfs/QmZmhPD9GHF4SCism94hbxXjrM53TTG1ugXhX9E3e47krk URI TO MINT

About

lenda.vercel.app


Languages

Language:Solidity 67.2%Language:JavaScript 19.9%Language:TypeScript 11.7%Language:CSS 1.2%