File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/horizon/contracts/staking Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -686,7 +686,7 @@ contract HorizonStaking is HorizonStakingBase, IHorizonStakingMain {
686686 /**
687687 * @notice See {IHorizonStakingMain-thaw}.
688688 * @dev We use a thawing pool to keep track of tokens thawing for multiple thaw requests.
689- * If due to slashing the thawing pool looses all of it's tokens, the pool is reset and all pending thaw
689+ * If due to slashing the thawing pool loses all of its tokens, the pool is reset and all pending thaw
690690 * requests are invalidated.
691691 */
692692 function _thaw (address _serviceProvider , address _verifier , uint256 _tokens ) private returns (bytes32 ) {
@@ -992,8 +992,8 @@ contract HorizonStaking is HorizonStakingBase, IHorizonStakingMain {
992992
993993 // process - only fulfill thaw requests for the current valid nonce
994994 uint256 tokens = 0 ;
995- bool invalidThawRequest = thawRequest.thawingNonce ! = thawingNonce;
996- if (! invalidThawRequest ) {
995+ bool validThawRequest = thawRequest.thawingNonce = = thawingNonce;
996+ if (validThawRequest ) {
997997 tokens = (thawRequest.shares * tokensThawing) / sharesThawing;
998998 tokensThawing = tokensThawing - tokens;
999999 sharesThawing = sharesThawing - thawRequest.shares;
@@ -1004,7 +1004,7 @@ contract HorizonStaking is HorizonStakingBase, IHorizonStakingMain {
10041004 tokens,
10051005 thawRequest.shares,
10061006 thawRequest.thawingUntil,
1007- ! invalidThawRequest
1007+ validThawRequest
10081008 );
10091009
10101010 // encode
You can’t perform that action at this time.
0 commit comments