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

LP debt shows the wrong value when LP NFT is used as collateral #233

Open
alexisgauba opened this issue Mar 14, 2022 · 0 comments
Open

LP debt shows the wrong value when LP NFT is used as collateral #233

alexisgauba opened this issue Mar 14, 2022 · 0 comments
Labels

Comments

@alexisgauba
Copy link
Contributor

Describe the bug
LP debt shows the wrong value when LP NFT is used as collateral since the LP is no longer owned by the user, rather by the contract, so the Uniswap subgraph isn't returning the correct amount of LP debt

To Reproduce

  1. Mint + LP from the LP page
  2. View LP debt
  3. Add LP NFT as collateral from vault manager
  4. View LP debt

Expected behavior
LP debt should show the amount a user LPed even

Screenshots
This user has 19 oSQTH LPed, but LP debt doesn't show that amount with their NFT as collateral
unknownss
Screen Shot 2022-03-13 at 6 15 32 PM

Additional context
https://opyn.slack.com/archives/C02QMRTJX5J/p1647009446087839

@alexisgauba alexisgauba added bug Something isn't working lp page labels Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants