minor code rearranging

This commit is contained in:
Ladd Hoffman 2024-03-30 17:29:43 -05:00
parent 18693ac474
commit a3e3ebb71f
1 changed files with 2 additions and 6 deletions

View File

@ -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.