Skip to content

Commit

Permalink
fix: use check effects pattern in _distirbute()
Browse files Browse the repository at this point in the history
  • Loading branch information
ilpepepig committed Sep 10, 2024
1 parent d52f4a2 commit c1967b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/strategies/examples/quadratic-voting/QVSimple.sol
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ contract QVSimple is BaseStrategy, RecipientsExtension {
revert RECIPIENT_ERROR(recipientId);
}

pool.token.transferAmount(recipient.recipientAddress, amount);

paidOut[recipientId] = true;

pool.token.transferAmount(recipient.recipientAddress, amount);

emit Distributed(recipientId, abi.encode(recipient.recipientAddress, amount, _sender));
}
}
Expand Down

0 comments on commit c1967b2

Please sign in to comment.