A surprisingly simple lending pool allows anyone to deposit ETH, and withdraw it at any point in time.

This very simple lending pool has 1000 ETH in balance already and is offering free flash loans using the deposited ETH to promote their system.

You must steal all ETH from the lending pool.

Does the contract only check if the contract’s token balance has not decreased

下記は何をしているの?

このinterfaceでの関数を実行してね。msg.senderの

only checking the balance.address(this) so you can hacked following process

  1. flashloan
  2. deposit
  3. finish flashloan(contract checks address balance so, you can’t be fail)
  4. withdraw all tokens
IFlashLoanEtherReceiver(msg.sender).execute{ value: amount }();