Skip to content

[Bug]: Max button appearing for Polygon native asset #22001

@SteP-n-s

Description

@SteP-n-s

Describe the bug

Currently, users see the Max button when they select Polygon's native asset which shouldn't be the case since Polygon doesn't support gasless transactions. The issue stems from the existence of two "zero addresses" for Polygon (0x0000000000000000000000000000000000001010 & 0x0000000000000000000000000000000000000000), where the first is treated as an ERC20 token instead of native.

Expected behavior

No max button present when user selects native asset in Polygon as the source asset.

Screenshots/Recordings

Image

Steps to reproduce

  1. Go to swaps screen
  2. Select Polygon native token on the source picker (provided you have balance)
  3. See max button appearing

Error messages or log output

Detection stage

In production (default)

Version

7.58

Build type

None

Device

iPhone 13 Pro

Operating system

iOS

Additional context

No response

Severity

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Sev2-normalAn issue that may lead to users misunderstanding some limited risks they are takingregression-prod-*Regression bug that was found in production in release *release-7.59.0Issue or pull request that will be included in release 7.59.0team-swaps-and-bridgeSwaps and Bridge teamtype-bugSomething isn't working

    Type

    Projects

    Status

    To be triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions