-
Notifications
You must be signed in to change notification settings - Fork 189
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
Handle TokenContractAddress in Peggy and deal with duplicate symbols across token addresses #69
Comments
The gist of the conversation is that Cosmos (and so Peggy) don't seem to support 2 different coins which have the same denom. This means that anyone can create an arbitrary ERC20 with the same symbol as an existing one, use Peggy to transfer it over, and so debase a real ERC20 with a fake one. Is there any way to have two different coins with the same denom in Cosmos at the moment? Some potential fixes:
Can we get thoughts from someone on the team for this too? |
I'm more a fan of the address prefix. It's my understanding this is similar to how IBC will work. There will be a prefix of the chain_id or some uid representing the chain with some deliminator. It could be ":" or "-", just whatever it is shouldn't be possible to include in the prefix. Client libs would just need to be careful to parse the names of the coin in order to show human readable names instead of long prefixes. |
As mentioned in issue #147 keeping track of asset origin would also allow a more united interface. |
This issue was created due a conversation over in swishlabsco/peggy: swishlabsco#4 (comment)
TokenContractAddress may also be needed in the Denom in order to guarantee coin uniqueness (see comment).
The text was updated successfully, but these errors were encountered: