Skip to content
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

fix: Patch swaps controller to expose POL rather than MATIC symbol #10960

Closed
wants to merge 2 commits into from

Conversation

gambinish
Copy link
Contributor

@gambinish gambinish commented Aug 30, 2024

Description

Patches the SwapsController to rename MATIC to POL token symbol. Previously, this was hardcoded to a MATIC symbol, so it was not properly displaying the POL token during swaps.

Related issues

Fixes:

Manual testing steps

  1. Switch to Polygon Network
  2. Initiate Swap
  3. Ensure that MATIC is now POL in swap UI

Screenshots/Recordings

Screen.Recording.2024-08-30.at.1.30.03.PM.mov
Screenshot 2024-08-30 at 1 32 50 PM

Pre-merge author checklist

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.

Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@gambinish gambinish changed the title Patch swaps controller to expose POL rather than MATIC symbol fix: Patch swaps controller to expose POL rather than MATIC symbol Aug 30, 2024
@gambinish gambinish added team-mobile-platform Run Smoke E2E Triggers smoke e2e on Bitrise labels Aug 30, 2024
@gambinish gambinish marked this pull request as ready for review August 30, 2024 20:35
@gambinish gambinish requested a review from a team as a code owner August 30, 2024 20:35
Copy link
Contributor

github-actions bot commented Aug 30, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 98edb32
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/267b3db3-558b-43c4-9056-48940639e7f8

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Copy link

Copy link
Contributor

@sethkfman sethkfman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

sethkfman pushed a commit that referenced this pull request Aug 30, 2024
## **Description**

Patch MATIC to POL in swaps UI

## **Related issues**

Fixes: #10960

## **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 Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/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-mobile/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.

---------

Co-authored-by: metamaskbot <metamaskbot@users.noreply.github.com>
Copy link
Contributor

@NicolasMassart NicolasMassart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@jarnaez728
Copy link

Can you do the same for Amoy testnet? It should be POL instead MATIC. When adding the network if you use POL, MetaMask complains telling is MATIC:

@gambinish gambinish closed this Sep 11, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Sep 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants