Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions contracts/StakeCredit.sol
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ contract StakeCredit is SystemV2, Initializable, ReentrancyGuardUpgradeable, ERC
* @dev Slash the validator. Only the `StakeHub` contract can call this function.
* @param slashBnbAmount the amount of BNB to be slashed
* @return realSlashBnbAmount the real amount of BNB slashed
*
* @notice Slashing is intentionally limited to the validator's active self-delegation
* (`balanceOf(validator)`); amounts recorded in the unbonding queue are outside this
* burn. A zero burn is therefore a valid outcome and must not itself cause `slash()`
* to revert on consensus-driven slashing paths.
*/
function slash(
uint256 slashBnbAmount
Expand Down
Loading