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

Adding ERC20 metadata for Foregin Assets #62

Closed
alistair-singh opened this issue Jun 18, 2024 · 5 comments
Closed

Adding ERC20 metadata for Foregin Assets #62

alistair-singh opened this issue Jun 18, 2024 · 5 comments

Comments

@alistair-singh
Copy link

Hi,

I am from the Snowbridge team. We recently launched on Polkadot and have bridged over server assets. We need to sync asset metadata for these bridged tokens on Subscan as users are looking for their tokens and cannot find them. There is also an issue of the correct decimals being displayed to the User.

See this example for WETH:
https://assethub-polkadot.subscan.io/foreign_assets/f1846f14a52715c2a09df52ef8f077c52977dcfd

I have opened this PR to add the metadata for WETH, but there is no way to set decimals.
#61

Also, do we have to do this process for each token that we register? Is there some way that this can be automated by pulling the metadata directly from Ethereum? The erc20 contract address forms part of the multi-location id used to identify the token on polkadot asset hub foreginAssets pallet.

Please advise

@freehere107
Copy link

freehere107 commented Jun 19, 2024

@alistair-singh Can you set metadata for this foreign token? If there is this data on the chain, we will automatically update the decimals field. for example https://assethub-polkadot.subscan.io/event?module=foreignassets&event_id=MetadataSet

@alistair-singh
Copy link
Author

The metadata on the Ethereum side of the bridge is the canonical version of the metadata. We can only do this for very common assets such as WETH. But we cannot do this for every asset bridged. Is there some way we can get an automated process in place to get this data from onchain Ethereum?

@freehere107
Copy link

This is also a solution at present, we will support it after the next update

@alistair-singh
Copy link
Author

This is also a solution at present, we will support it after the next update

Do you have a tracking issue we can follow?

@freehere107
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants