diff --git a/src/PartyPool.sol b/src/PartyPool.sol index d682db8..072101f 100644 --- a/src/PartyPool.sol +++ b/src/PartyPool.sol @@ -457,7 +457,7 @@ contract PartyPool is PartyPoolBase, OwnableExternal, ERC20External, IPartyPool } _sendTokenTo(token, address(receiver), amount, false); - require(receiver.onFlashLoan(address(receiver), address(token), amount, fee, data) == FLASH_CALLBACK_SUCCESS); + require(receiver.onFlashLoan(msg.sender, address(token), amount, fee, data) == FLASH_CALLBACK_SUCCESS); _receiveTokenFrom(address(receiver), token, amount + fee); // Update cached balance for the borrowed token