Closed Evalir closed 4 years ago
The _stake function will try to unstake "inactive" tokens that might be currently staked in an executed proposal. Right now, the contract is assuming that a token that is inactive can only be staked in an executed proposal, but cancelled proposals can have staked tokens, and should therefore be treated as such on the function _withdrawInactiveStakedTokens.
_stake
_withdrawInactiveStakedTokens
The
_stake
function will try to unstake "inactive" tokens that might be currently staked in an executed proposal. Right now, the contract is assuming that a token that is inactive can only be staked in an executed proposal, but cancelled proposals can have staked tokens, and should therefore be treated as such on the function_withdrawInactiveStakedTokens
.