squeeth-monorepo
squeeth-monorepo copied to clipboard
Different values from short trade modal & position card
Describe the bug The position card gets the value from swaps data / vaultHistories, the modal gets the value from uniswap trade simulation, so there is some gaps between two numbers
To Reproduce Steps to reproduce the behavior:
- Open short position on trade page
Expected behavior Values shld be the same
Screenshots
Additional context Add any other context about the problem here.
@yichiehliu I think it's not possible. It's not simulation it just gets the quote and we never get the same value because of slippage.
May be we can fetch what happened in the tx and show it in the trade modal