You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Remove first require require(staker.tokensStaked > 0, 'Must be a positive number');, it is unnecessary since tokensStaked>0 will already be validated with this require
require(
staker.tokensAvailable() >= _tokens,
'Insufficient amount to unstake'
);
Motivation
Fix error in the contract
Implementation details
Remove require
The text was updated successfully, but these errors were encountered:
Description
Remove first require
require(staker.tokensStaked > 0, 'Must be a positive number');
, it is unnecessary since tokensStaked>0 will already be validated with this requireMotivation
Fix error in the contract
Implementation details
Remove require
The text was updated successfully, but these errors were encountered: