Skip to content

Selithrarion/mini-aave-clone

Repository files navigation

mini-aave-clone

a lending protocol study, kinda like aave

features

  • core defi logic: deposit, borrow, withdraw, repay, liquidations and flash loans.
  • dynamic nfts: you get an nft when you deposit and it changes based on your position.
  • zk-proof: a private pool using circom and snarkjs (wip).
  • tests: covered with hardhat 3.
  • frontend: a basic vue + wagmi interface to interact with the protocol.

todo

how to run

  1. start a local node in one terminal:

    npx hardhat node
  2. deploy the contracts in another terminal:

    npx hardhat ignition deploy --network localhost ./ignition/modules/MiniAave.ts
  3. mint some test tokens to your wallet (the first account from the node):

    npx hardhat run scripts/mintTokens.ts --network localhost
  4. run the frontend:

    cd frontend
    pnpm install
    pnpm dev