flash loan initiator fix

This commit is contained in:
tim
2025-10-20 12:25:30 -04:00
parent 52c923baee
commit 12fc43f999

View File

@@ -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