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

Fix (Assets): Group natives with wraps #180

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

OjusWiZard
Copy link
Contributor

@OjusWiZard OjusWiZard commented Aug 13, 2024

Closes https://github.com/orgs/rotki/projects/11/views/2?pane=issue&itemId=73676916

  • Group native currencies with their wrapped tokens

Comment on lines 3 to 4
UPDATE common_asset_details SET swapped_for="eip155:1/erc20:0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6" WHERE identifier="eip155:1/erc20:0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0";
INSERT INTO assets(identifier, name, type) VALUES("eip155:1/erc20:0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0", "Matic Network", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:1/erc20:0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0", "A", 1, "0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:1/erc20:0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0", "MATIC", "matic-network", "matic", NULL, 1503906828, "eip155:1/erc20:0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SEems that this is doing something weird
imagen

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay so I thought they are the same and it's a simple "swapped for". But, actually they should be treated differently, so I'm removing this change. It's fine as it is right now.

Copy link
Member

@yabirgb yabirgb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's see

@yabirgb yabirgb merged commit de40973 into rotki:bugfixes Sep 3, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants