A composable lending protocol built on Solana, and inspired by Morpho Blue
Report Bug
·
Request Feature
Table of Contents
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.
- Rust
- Anchor
- Solana
- Yarn
Make sure you have yarn, git, rust, solana-cli, and anchor installed and configured on your system.
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!
- Solana program development
- Unit tests
- Write a good README.md
See the open issues for a full list of proposed features (and known issues).
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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Here's a gateway to all my socials, don't forget to hit me up!