```\nfunction confiscate(uint validatorId, uint amount) external {\n    uint currentMonth = getCurrentMonth();\n    Fraction memory coefficient = reduce(\_delegatedToValidator[validatorId], amount, currentMonth);\n    reduce(\_effectiveDelegatedToValidator[validatorId], coefficient, currentMonth);\n    putToSlashingLog(\_slashesOfValidator[validatorId], coefficient, currentMonth);\n    \_slashes.push(SlashingEvent({reducingCoefficient: coefficient, validatorId: validatorId, month: currentMonth}));\n}\n```\n