1Hive / conviction-voting-app

Aragon app used to collectively allocate funds from a shared treasury 💧
93 stars 31 forks source link

Contracts: take into account staked tokens in cancelled proposals as "Inactive" #108

Closed Evalir closed 4 years ago

Evalir commented 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.