audit fix

This commit is contained in:
owen05
2021-05-12 10:40:30 +08:00
parent 2751801a83
commit 53ef70a604
2 changed files with 9 additions and 77 deletions

View File

@@ -86,9 +86,8 @@ contract FeeDistributor {
if (withClaim) {
_claim(msg.sender, to);
}
StakeVault(_STAKE_VAULT_).transferOut(_STAKE_TOKEN_, amount, to);
_removeShares(amount, msg.sender);
StakeVault(_STAKE_VAULT_).transferOut(_STAKE_TOKEN_, amount, to);
emit UnStake(msg.sender, amount);
}