Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions plume/src/spin/Raffle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ contract Raffle is Initializable, AccessControlUpgradeable, UUPSUpgradeable {

function invalidateWinner(
uint256 prizeId,
// winnerIndex refers to the index of the winner in the prizeWinners array
// NOT the winning ticket index
uint256 winnerIndex
) external onlyRole(ADMIN_ROLE) {
if (winnerIndex >= prizeWinners[prizeId].length) {
Expand Down Expand Up @@ -424,6 +426,8 @@ contract Raffle is Initializable, AccessControlUpgradeable, UUPSUpgradeable {

function claimPrize(
uint256 prizeId,
// winnerIndex refers to the index of the winner in the prizeWinners array
// NOT the winning ticket index
uint256 winnerIndex
) external {
// Check if this specific winner exists
Expand Down Expand Up @@ -570,6 +574,8 @@ contract Raffle is Initializable, AccessControlUpgradeable, UUPSUpgradeable {

function isWinnerValid(
uint256 prizeId,
// winnerIndex refers to the index of the winner in the prizeWinners array
// NOT the winning ticket index
uint256 winnerIndex
) external view returns (bool) {
return !invalidWinners[prizeId][winnerIndex];
Expand Down