Skip to content

Commit

Permalink
Reset after claim
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhlmm committed Mar 9, 2024
1 parent 0584c21 commit 7cf5a01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/GMPrizePool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ contract GMPrizePool {
for (uint256 i = 0; i < winnersList.length; i++) {
// Perform the desired operation on each element
totalPrize += winnersList[i].prizeAmount;
winnersList[i].prizeAmount = 0; // Reset after claim
}

console.log("Start send back");
Expand Down

0 comments on commit 7cf5a01

Please sign in to comment.