React interface for the CollateralX lending protocol, allowing users to deposit ETH as collateral and borrow stablecoins against it.
BE: https://github.com/rajathshetty20/collateralx-protocol
- Deposit ETH as collateral
- Borrow stablecoins (150% collateral ratio)
- Multiple loans per collateral
- Flexible loan repayment
- Liquidation (120% threshold)
- 10% annual interest rate
- Real-time ETH/USD price feeds via Chainlink
- Install dependencies:
npm install-
Connect MetaMask to Sepolia network
-
Start the app:
npm run devFor local development, refer to the CollateralX Protocol Repository for instructions on deploying contracts locally.
src/
├── abi/ # Contract ABIs
├── config.js # Network & contract config
├── App.jsx # Main UI component
└── App.css # Styling
- Maintain >150% collateral ratio
- Positions below 120% can be liquidated
- Interest accumulates over time
- Uses Chainlink's trusted price feeds for accurate ETH valuation
- Test with small amounts first
- Verify contract addresses
MIT