starknet-io / starkgate-frontend

Bridge interface allows users to transfer ERC20 tokens from Ethereum to StarkNet and vice versa.
https://starkgate.starknet.io
Apache License 2.0
148 stars 84 forks source link

fix(2918898444): Too many zeros shows for WBTC #228

Closed dan-ziv closed 2 years ago

dan-ziv commented 2 years ago

Description of the Changes

Used the unit map of web3 to do the conversions. The problem is that in this map the jumps are in 3 decimals, I.e. 3,6,9,12,18... So if we have a token with 8 decimals, for example, we didn't convert him correctly.

Checklist


This change is Reviewable

github-actions[bot] commented 2 years ago

This branch was successfully deployed :rocket: https://pr228-goerli.starkgate.starknet.io

dan-ziv commented 2 years ago

:tada: This PR is included in version 1.6.1-dev.2 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

dan-ziv commented 2 years ago

:tada: This PR is included in version 1.6.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: