From 12fc43f999e55607d4a04c7713cda4ca84331072 Mon Sep 17 00:00:00 2001 From: tim Date: Mon, 20 Oct 2025 12:25:30 -0400 Subject: [PATCH] flash loan initiator fix --- src/PartyPool.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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