Unsupported Wrap/Unwrap Error Tracking

Stacks Testnet: ST37N35P4903CB8S91SHHYYQ3Q44Q3HCJS8RD4TKW
Stacks Mainnet: SP37N35P4903CB8S91SHHYYQ3Q44Q3HCJSBP8DCVF
Discord: NuriKols#4750
Telegram: @ WaseemK

So I’ve tracked down the following error:

  • Connect Metamask to any chain other than Goerli (I tested with Ethereum Mainnet, RSK Mainnet and BSC Testnet).
  • Attempt to input an amount in the bridge.
  • Site crashes with the error as shown in the above picture.

Note: Site only crashes when attempting to input a value (I only tried STX to XUSD because I had no balance on the other side yet).

Even though the error says “unsupported”, I think that instead of getting bombed out completely with the code language in the image and having to refresh / go back home, there should be a neat error message which just informs the user as to why the Wrap/Unwrap button is locked.

The error shown in the image and the site bombing out can be circumvented by changing the RPC network after already having inputted an amount to bridge.
In doing so, the amount shown on the right gets locked no matter what value is inputted on the left as shown below:

&

At this point, if I switch back to Goerli, the locked amount shown on the right in the image unlocks and reflects correctly.

On a different topic, I noticed something cool, see below :slight_smile:

The amount input field allows for really massive whales to input really big numbers.
This amount input can be capped at some amount.
Also, the input field indefinitely expands.

Here’s something more cool:

Up to this amount (number of digits), the screen indefinitely expands:
100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000

and at just $1 more (1 character more) 1,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,001) the screen resets and looks like this:

Note the infinity sign.

After clicking the Wrap/Unwrap button, it appears that only the left field expands as explained previously:

The same occurs, whether on Goerli or not:

If you try going to the bridge site while on an incorrect RPC network, you receive the following error message:

Uploading: image.png…

Please see previously posted at:

2 Likes

Hi Waseem, Thanks so much for the detailed explanations and suggested solution!

2 Likes