Skip to content

Update: Extend Sweepstakes Campaign Dates #31902

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
9 tasks
vinnyhoward opened this issue Apr 11, 2025 · 0 comments · Fixed by #31900
Closed
9 tasks

Update: Extend Sweepstakes Campaign Dates #31902

vinnyhoward opened this issue Apr 11, 2025 · 0 comments · Fixed by #31900
Labels
release-12.18.0 Issue or pull request that will be included in release 12.18.0

Comments

@vinnyhoward
Copy link
Contributor

What is this about?

Extend the deadline for the sweepstakes campaign from 04/15/25 to 04/29/25

Scenario

No response

Design

No response

Technical Details

No response

Threat Modeling Framework

No response

Acceptance Criteria

No response

Stakeholder review needed before the work gets merged

  • Engineering (needed in most cases)
  • Design
  • Product
  • QA (automation tests are required to pass before merging PRs but not all changes are covered by automation tests - please review if QA is needed beyond automation tests)
  • Security
  • Legal
  • Marketing
  • Management (please specify)
  • Other (please specify)

References

No response

@vinnyhoward vinnyhoward changed the title Extend Sweepstakes Campaign Dates Update: Extend Sweepstakes Campaign Dates Apr 11, 2025
github-merge-queue bot pushed a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
@metamaskbot metamaskbot added the release-12.18.0 Issue or pull request that will be included in release 12.18.0 label Apr 11, 2025
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
vinnyhoward added a commit that referenced this issue Apr 11, 2025
Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

Fixes:
[#31902](#31902)

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

NA

NA

NA

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
vinnyhoward added a commit that referenced this issue Apr 11, 2025
…31906)

<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**

<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31906?quickstart=1)

## **Related issues**

Fixes: #31902

## **Manual testing steps**

1. Go to this page...
2.
3.

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**

<!-- [screenshots/recordings] -->

## **Pre-merge author checklist**

- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 11, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
dbrans pushed a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Apr 14, 2025
## **Description**

Extend sweepstakes end date and refactor

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1)

## **Related issues**

Fixes:
[#31902](#31902)

## **Manual testing steps**

1. Go to this home screen - observe that the banner is shown between the
dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z`
2. Change dates with following command `sudo date -I 04302025` to
automatically hide banner
3. Change date back using `sudo date -I 04112025`
4. Dismiss sweepstakes banner and observe that is isn't shown anymore
5. Change dates once again after the banner has been dismissed - observe
that it is still dismissed

## **Screenshots/Recordings**

NA

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-12.18.0 Issue or pull request that will be included in release 12.18.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants