Break down the cost of your metaversal assets into small, affordable payments with MetaLoan's DApp on the Polygon blockchain. This project enables users to secure their stake in the expanding universe of digital experiences by facilitating manageable financial transactions.
- Front-end: ReactJS
- Smart Contract Language: Solidity
- Blockchain: Polygon Mainnet
- Testing: Foundry
The MetaLoan
contract is designed to create and manage loan plans. It allows managers to create loan plans, users to apply for and pay loans, and also provides other functionalities such as the ability to delete a loan plan, withdraw tokens, and more.
onlyOwner
onlyManager
PlanExists
NotZeroAddress
NotZeroValue
constructor
createPlan
requestLoan
payLoan
deletePlan
withdrawTokens
addManager
fetchMyLoan
fetchPlan
fetchAllBorrowers
fetchallPlans
PlanCreated
PaymentSent
LoanCreated
LoanDeleted
PlanDeleted
TransferOfTokens
View Metaloan Smart Contract on Polygon Mainnet
- Clone the Repository:
git clone <repository-url>
- Install Dependencies:
npm install
- Start the DApp:
npm start
Follow the instructions to install Foundry.
Clone and install dependencies:git submodule update --init --recursive
Test Contract: forge test --contracts ./src/test/Metaloan.t.sol -vvvv
Visit http://localhost:3000/
to interact with the decentralized application.