Skip to content

mgnfy-view/lego-lend

Repository files navigation

Contributors Forks Stargazers Issues MIT License


LegoLend

A composable lending protocol built on Solana, and inspired by Morpho Blue
Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Roadmap
  4. Contributing
  5. License
  6. Contact

About The Project

LegoLend is a composable lending protocol built on Solana. It is heavily inspired by Morpho Blue, one of the hottest lending protocols from 2024.

LegoLend allows you to create lending pools for any pair of assets by attaching your custom oracles and interest rate models. It represents a user's supplied and borrowed assets in the form of shares, which enables any bad debt to be spread among the lenders. Due to its individual pool approach, LegoLend provides a very high liquidation loan to value threshold and, consequently, generates higher interest for lenders.

Lenders are not expected to interact directly with LegoLend, instead they should use allocation strategy vaults attested by LegoLend to split their deposits accross multiple lending pools. This also activates their deposit to be eligible for any additional points/incentives/rewards provided by the allocation strategy vault manager.

Built With

  • Rust
  • Anchor
  • Solana
  • Yarn

Getting Started

Prerequisites

Make sure you have yarn, git, rust, solana-cli, and anchor installed and configured on your system.

Installation

Clone the repo,

git clone https://github.com/mgnfy-view/lego-lend.git

cd into the repo, and install the necessary dependencies,

cd lego-lend
yarn install
anchor build

Run tests by executing,

anchor test <test-name>

That's it, you are good to go now!

Roadmap

  • Solana program development
  • Unit tests
  • Write a good README.md

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

Contributing

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

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  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

License

Distributed under the MIT License. See LICENSE.txt for more information.

Reach Out

Here's a gateway to all my socials, don't forget to hit me up!

Linktree

Releases

No releases published

Packages

No packages published