```\n    function _repayLoan(// rest of code) internal virtual {\n        // rest of code\n        bid.loanDetails.lendingToken.safeTransferFrom(\n            _msgSenderForMarket(bid.marketplaceId),\n            lender,\n            paymentAmount\n        );\n        // rest of code\n```\n