diff --git a/contracts/interfaces/ILendingPool.sol b/contracts/interfaces/ILendingPool.sol index 9dbb7c89..55362ec1 100644 --- a/contracts/interfaces/ILendingPool.sol +++ b/contracts/interfaces/ILendingPool.sol @@ -99,6 +99,7 @@ interface ILendingPool { /** * @dev emitted when a flashloan is executed * @param target the address of the flashLoanReceiver + * @param initiator the address initiating the flash loan * @param asset the address of the asset being flashborrowed * @param amount the amount requested * @param premium the total fee on the amount @@ -106,6 +107,7 @@ interface ILendingPool { **/ event FlashLoan( address indexed target, + address initiator, address asset, uint256 amount, uint256 premium, diff --git a/contracts/lendingpool/LendingPool.sol b/contracts/lendingpool/LendingPool.sol index a90fc385..987d8eb9 100644 --- a/contracts/lendingpool/LendingPool.sol +++ b/contracts/lendingpool/LendingPool.sol @@ -595,6 +595,7 @@ contract LendingPool is VersionedInitializable, ILendingPool, LendingPoolStorage } emit FlashLoan( receiverAddress, + msg.sender, vars.currentAsset, vars.currentAmount, vars.currentPremium,