Skip to content

Conversation

pash7ka
Copy link
Contributor

@pash7ka pash7ka commented Jan 28, 2021

No description provided.

@Pavel-Blaize Pavel-Blaize changed the base branch from deploy_2021-01-14 to staking-update February 17, 2021 15:08
@Pavel-Blaize Pavel-Blaize changed the base branch from staking-update to deploy_2021-01-14 February 17, 2021 15:16

uint256 unstakedForSender = unstakeAmount.sub(unstakedForOthers);
sc.totalStakedFor = sc.totalStakedFor.sub(unstakedForSender);
require(stakingToken.transfer(_msgSender(), unstakeAmount), "Unable to withdraw");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no totalStakedFor reduction here.
Please add the line
totalStakedAmount = totalStakedAmount.sub(unstakeAmount);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants