DeFi Lend Borrow is a decentralized finance (DeFi) application that enables users to lend and borrow assets on the Shimmer EVM testnet. The project is built using Solidity, Hardhat, React and ethers.
Before running this project, make sure you have the following installed:
- Node.js (v14 or later)
- Hardhat
- MetaMask (for interacting with the IOTA EVM Testnet)
- Etherscan API Key for adding chain configs in hardhat config.
https://github.com/iota-community/Defi-lend-borrow.git
cd Defi-lend-borrow
Install all necessary dependencies for both the backend (smart contracts) and the frontend.
npm install # Install dependencies for the hardhat project
cd frontend
npm install or npm install --legacy-peer-deps # Install dependencies for the React frontend
Create a .env
file at the root of your project and include the following:
# .env
PRIVATE_KEY=<Your_Private_Key>
ETHERSCAN_API_KEY=<Your_ETHERSCAN_API_KEY>
Using Hardhat, compile and deploy the contracts on the IOTA EVM testnet, ensuring that the deploy script properly includes the required constructor arguments.
npx hardhat compile
npx hardhat run scripts/deploy.js --network shimmer_evm_testnet
Navigate to the /lend-borrow-ui
directory and start the React development server.
cd lend-borrow-ui
npm start
Open your browser at http://localhost:3000 to interact with the app.
Contributions are welcome! Please follow the standard GitHub process for opening issues, creating pull requests, and contributing code.
- Fork the repository
- Create a new branch (git checkout -b feature/your-feature)
- Commit your changes (git commit -m 'Add some feature')
- Push to the branch (git push origin feature/your-feature)
- Open a pull request
This project is licensed under the MIT License.