diff --git a/ethereum/contracts/DAO.sol b/ethereum/contracts/DAO.sol index f2023e7..4260583 100644 --- a/ethereum/contracts/DAO.sol +++ b/ethereum/contracts/DAO.sol @@ -193,16 +193,14 @@ contract DAO is ERC20("Reputation", "REP") { // Refund fee // TODO: this could be made available for the sender to withdraw // payable(pool.sender).transfer(pool.fee); - // Refund stakes for (uint i = 0; i < pool.stakeCount; i++) { s = pool.stakes[i]; - // TODO: ensure this can't be repeated _update(address(this), s.sender, s.amount); } - + pool.resolved = true; + emit ValidationPoolResolved(poolIndex, false, false); // Callback if requested - if (pool.callbackOnValidate) { try IOnValidate(pool.sender).onValidate( @@ -219,8 +217,6 @@ contract DAO is ERC20("Reputation", "REP") { } } - pool.resolved = true; - emit ValidationPoolResolved(poolIndex, false, false); return false; } // A tie is resolved in favor of the validation pool.