squeeth-monorepo
squeeth-monorepo copied to clipboard
LP debt shows the wrong value when LP NFT is used as collateral
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
- Mint + LP from the LP page
- View LP debt
- Add LP NFT as collateral from vault manager
- 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
Additional context https://opyn.slack.com/archives/C02QMRTJX5J/p1647009446087839