From a3e3ebb71f11dc991b85d96a14667b33d49433a1 Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Sat, 30 Mar 2024 17:29:43 -0500 Subject: [PATCH] minor code rearranging --- ethereum/contracts/DAO.sol | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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.