The Subscription-Based Lending smart contract is designed to facilitate a decentralized lending and borrowing system with a subscription model. Users can borrow funds by subscribing to the platform for a fixed monthly fee, with grace periods, penalty fees, and interest rates applied to overdue payments. Lenders can deposit funds into the pool and earn monthly rewards based on the funds they’ve provided.
This contract combines subscription-based access with a traditional lending model, aiming to create a more structured and predictable system for both borrowers and lenders.
Traditional lending systems often lack structure, leading to inconsistencies in repayment timelines, penalties, and reward distribution. This smart contract solves these issues by automating subscriptions, borrowing limits, interest rates, and lender rewards, ensuring a more predictable and efficient lending experience.
Deploy the smart contract on your preferred crossifi network and set the parameters such as the subscription fee, grace period, penalty rate, and borrowing limit according to your preferences.
constructor(
uint256 _subscriptionFee,
uint256 _gracePeriod,
uint256 _penaltyFeeRate,
uint256 _fixedBorrowingLimit
)
Once deployed, the contract can be interacted with through web3 or directly using a tool like Remix.
Contributions are welcome! If you’d like to contribute to this project, please fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries or support, please open an issue on the GitHub repository or contact us via email.
Here, you can renew your subscription in 15 XFIs and you can also borrow funds and repay loans.
Here, you can deposit and withdraw funds and also claim rewards.
An admin can set borrowers limit and can also block and unblock the borrower.
This contract is designed to be extended and improved. Future developments include: