- Added initiator to flash loan event.

This commit is contained in:
eboado 2020-10-30 11:49:23 +01:00
parent de7ec39f24
commit 092aacc85a
2 changed files with 3 additions and 0 deletions

View File

@ -99,6 +99,7 @@ interface ILendingPool {
/** /**
* @dev emitted when a flashloan is executed * @dev emitted when a flashloan is executed
* @param target the address of the flashLoanReceiver * @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 asset the address of the asset being flashborrowed
* @param amount the amount requested * @param amount the amount requested
* @param premium the total fee on the amount * @param premium the total fee on the amount
@ -106,6 +107,7 @@ interface ILendingPool {
**/ **/
event FlashLoan( event FlashLoan(
address indexed target, address indexed target,
address initiator,
address asset, address asset,
uint256 amount, uint256 amount,
uint256 premium, uint256 premium,

View File

@ -595,6 +595,7 @@ contract LendingPool is VersionedInitializable, ILendingPool, LendingPoolStorage
} }
emit FlashLoan( emit FlashLoan(
receiverAddress, receiverAddress,
msg.sender,
vars.currentAsset, vars.currentAsset,
vars.currentAmount, vars.currentAmount,
vars.currentPremium, vars.currentPremium,