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

Uniswap LP tokens are missing the protocol information #7024

Closed
yabirgb opened this issue Nov 29, 2023 · 4 comments
Closed

Uniswap LP tokens are missing the protocol information #7024

yabirgb opened this issue Nov 29, 2023 · 4 comments
Labels
bug Something isn't working
Milestone

Comments

@yabirgb
Copy link
Member

yabirgb commented Nov 29, 2023

Abstract

A user reported to me issues querying prices for Uniswap LP tokens. It turns out that the issue was that the asset was missing the UNI-V2 protocol that is used by the inquierer to execute special logic and query the prices for the LP. In addition is hard to identify the asset since all use the same UNI-V2 symbol.

Specification

  1. In
    underlying_tokens=underlying_tokens,
    we are not adding the information about the protocol. In the case of uniswap we have special logic to query prices https://github.com/rotki/rotki/blob/119397e52cc4ea5210fd50093c7e5098fdff16f9/rotkehlchen/inquirer.py#L163C30-L163C30
  2. When adding or editing the token since we know the underlying tokens we can add their symbol to the name and symbol of the lp token
@yabirgb yabirgb added this to the 1.31.1 milestone Nov 29, 2023
@yabirgb yabirgb changed the title Uniswap LP tokens are missing the protocol Uniswap LP tokens are missing the protocol information Nov 29, 2023
@yabirgb yabirgb added the bug Something isn't working label Nov 29, 2023
@LefterisJP
Copy link
Member

Hmm so what is the actionable items here? To add it when adding the protocol?

Doesn't this also need a DB upgrade? Also ... this is a dejavu. Didn't you mention this before and fixed it?

@yabirgb
Copy link
Member Author

yabirgb commented Nov 29, 2023

yes, add the protocol when adding the pool token.

Ideally we would have one but not sure if it just better to re-decode the events with location=ethereum counterparty=uniswap-v2 eventy_type=deposit and let the decoder edit them.

This exact thing I don't recall it

@LefterisJP
Copy link
Member

yes, add the protocol when adding the pool token.

Ideally we would have one but not sure if it just better to re-decode the events with location=ethereum counterparty=uniswap-v2 eventy_type=deposit and let the decoder edit them.

This exact thing I don't recall it

Let's take it to discord

@yabirgb
Copy link
Member Author

yabirgb commented Dec 11, 2023

Fixed by #7031

@yabirgb yabirgb closed this as completed Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants