Skip to content

Commit 83c6ff8

Browse files
committed
PoS: Update staking manager
Remove instances of �slashing
1 parent 48dc6bc commit 83c6ff8

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

docs/pos/reference/contracts/stakingmanager.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,14 @@ PIP4 introduced the concept of showcasing validator performance for community vi
2525

2626
## Methods and variables
2727

28-
!!!caution
29-
Slashing Implementation
30-
31-
`jail`, `unJail`, and `slash` functions are not used currently as part of the slashing implementation.
32-
33-
3428
### validatorThreshold
3529

3630
It stores the maximum number of validators accepted by the system, also called slots.
3731

3832
### AccountStateRoot
3933

4034
- For various accounting done on Heimdall for validators and delegator, account root is submitted while submitting the `checkpoint`.
41-
- accRoot is used while `claimRewards` and `unStakeClaim`.
35+
- `accRoot` is used while `claimRewards` and `unStakeClaim`.
4236

4337
### stake / stakeFor
4438

@@ -76,9 +70,7 @@ function stakeFor(
7670
```solidity
7771
function unstakeClaim(uint256 validatorId) public;
7872
```
79-
80-
- After `unstaking`, validators are put into withdrawal period so that they can be slashed, if any fraud found after `unstaking`, for past frauds.
81-
- Once `WITHDRAWAL_DELAY` period is served, validators can call this function and do settlement with `stakeManager` (get rewards if any, get staked tokens back, burn NFT, etc).
73+
Once `WITHDRAWAL_DELAY` period is served, validators can call this function and do settlement with `stakeManager` (get rewards if any, get staked tokens back, burn NFT, etc).
8274

8375
### restake
8476

@@ -127,7 +119,7 @@ function claimFee(
127119

128120
This method is used to withdraw fees from Heimdall. `accountStateRoot` is updated on each checkpoint, so that validators can provide proof of inclusion in this root for account on Heimdall and withdraw fee.
129121

130-
Note that `accountStateRoot` is re-written to prevent exits on multiple checkpoints (for old root and save accounting on `stakeManager`). `accumSlashedAmount` is unused at the moment and will be used for slashing on Heimdall if needed.
122+
Note that `accountStateRoot` is re-written to prevent exits on multiple checkpoints (for old root and save accounting on `stakeManager`).
131123

132124
### StakingNFT
133125

0 commit comments

Comments
 (0)