Punisher
This contract handles all slashing and forgiving operations.
Functions
slash slash(uint256 validatorId, uint256 amount)
external
Allows SkaleDKG contract to execute slashing on a validator and
validator’s delegations by an amount
of tokens.
Emits a Slash
event.
Requirements:
-
Validator must exist.
forgive forgive(address holder, uint256 amount)
external
Allows the Admin to forgive a slashing condition.
Emits a Forgive
event.
Requirements:
-
All slashes must have been processed.
getAndUpdateLockedAmount getAndUpdateLockedAmount(address wallet) → uint256
external
getAndUpdateForbiddenForDelegationAmount getAndUpdateForbiddenForDelegationAmount(address wallet) → uint256
external
handleSlash handleSlash(address holder, uint256 amount)
external
Allows DelegationController contract to execute slashing of delegations.
initialize initialize(address contractManagerAddress)
public
Slash Slash(uint256 validatorId, uint256 amount)
event
Emitted upon slashing condition.
Forgive Forgive(address wallet, uint256 amount)
event
Emitted upon forgive condition.