Keep3r V2
Search…
Slasher
Slashers are governance-approved addresses with permission to exercise last resort punishments over keepers and jobs that act in bad faith. These permissions allow slashers to:
  • Slash bonded assets from keepers
  • Slash tokens and liquidities from jobs
  • Blacklist keepers altogether, effectively rendering them unable to keep participating in the network.
For a keeper or a job to be subjected to a possible slashing or blacklist, they have first to have been disputed by either governance or a disputer.

Slashing Keepers

Slash the bonded asset of a keeper.
1
/// @notice Allows governance to slash a keeper based on a dispute
2
/// @param _keeper The address being slashed
3
/// @param _bonded The asset being slashed
4
/// @param _amount The amount being slashed
5
function slash(
6
address _keeper,
7
address _bonded,
8
uint256 _amount
9
) external;
Copied!

Slashing Jobs

Slash an array of tokens from a job.
1
/// @notice Allows governance or slasher to slash a job specific token
2
/// @param _job The address of the job from which the token will be slashed
3
/// @param _tokens An array containing the token addresses that will be slashed
4
/// @param _amounts An array containing the amounts of token that will be slashed for each token
5
function slashTokenFromJob(
6
address _job,
7
address[] memory _tokens,
8
uint256[] memory _amounts
9
) external;
Copied!
Slash an array of liquidities from a job.
1
/// @notice Allows governance or a slasher to slash liquidity from a job
2
/// @param _job The address being slashed
3
/// @param _liquidities An array containing the liquidity addresses that will be slashed
4
/// @param _amounts An array containing the amounts of liquidity that will be slashed for each liquidity
5
function slashLiquidityFromJob(
6
address _job,
7
address[] memory _liquidities,
8
uint256[] memory _amounts
9
) external;
Copied!

Blacklisting Keepers

Blacklists a keeper from the network.
1
/// @notice Blacklists a keeper from participating in the network
2
/// @param _keeper The address being slashed
3
function revoke(address _keeper) external;
Copied!