```\n    function getLiquidationBonus(\n        address token,\n        uint256 borrowedAmount,\n        uint256 times\n    ) public view returns (uint256 liquidationBonus) {\n        // Retrieve liquidation bonus for the given token\n        Liquidation memory liq = liquidationBonusForToken[token];\n        unchecked {\n            if (liq.bonusBP == 0) {\n                // If there is no specific bonus for the token\n                // Use default bonus\n                liq.minBonusAmount = Constants.MINIMUM_AMOUNT;\n                liq.bonusBP = dafaultLiquidationBonusBP;\n            }\n            liquidationBonus = (borrowedAmount * liq.bonusBP) / Constants.BP;\n\n            if (liquidationBonus < liq.minBonusAmount) {\n                liquidationBonus = liq.minBonusAmount;\n            }\n            liquidationBonus *= (times > 0 ? times : 1);\n        }\n    }\n```\n