minor code rearranging
This commit is contained in:
parent
18693ac474
commit
a3e3ebb71f
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue