We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b94b694 commit d7be96cCopy full SHA for d7be96c
contracts/staking/libs/Stakes.sol
@@ -176,12 +176,6 @@ library Stakes {
176
if (stake.tokensLockedUntil == 0 || block.number < stake.tokensLockedUntil) {
177
return 0;
178
}
179
- // Cannot withdraw more than currently staked
180
- // This condition can happen if while tokens are locked for withdrawal a slash condition happens
181
- // In that case the total staked tokens could be below the amount to be withdrawn
182
- if (stake.tokensLocked > stake.tokensStaked) {
183
- return stake.tokensStaked;
184
- }
185
return stake.tokensLocked;
186
187
0 commit comments