A decentralized lending and borrowing platform where users can deposit tokens to earn interest and borrow against collateral, similar to Aave or Compound but simplified for HackQuest.
Lending & Borrowing
Users can deposit ERC20 tokens to earn interest.
Users can borrow tokens by providing collateral.
Health Factor / Liquidation
Borrowers have a health factor based on collateral ratio.
If it falls below a threshold, positions can be liquidated.
Interest Accrual
Lending tokens accrue interest over time.
Governance / Upgradability (optional for HackQuest bonus)
Admin can update interest rates or parameters via a governance contract.
LendingPool.sol: Handles deposits, withdrawals, and borrowing.
CollateralManager.sol: Tracks collateral and calculates health factor.
Token.sol: ERC20 test token for lending and borrowing.