```\nfunction liquidateSecondary(\n        address asset,\n        MTypes.BatchMC[] memory batches,\n        uint88 liquidateAmount,\n        bool isWallet\n    ) external onlyValidAsset(asset) isNotFrozen(asset) nonReentrant {\n        // Initial code\n\n        emit Events.LiquidateSecondary(asset, batches, msg.sender, isWallet);\n    }\n```\n