Handsome Pineapple Mustang
Medium
as there in cancelOffer we are canceling the offer but we can still call the addFunds to add funds to that offer.
function addFunds(uint amount) public nonReentrant { require( msg.sender == lendInformation.owner || IAggregator(aggregatorContract).isSenderALoan(msg.sender), "Only owner or loan" ); SafeERC20.safeTransferFrom( IERC20(lendInformation.principle), msg.sender, address(this), amount ); lendInformation.availableAmount += amount; IDLOFactory(factoryContract).emitUpdate(address(this)); }
There is no check to see whether the offer has already been cancelled or not.
No response
No response
No response
No response
No response
while calling the addFunds check for the offer is not cancelled.