Hello guys, we are building defi dashboard for user to track there investement but we are facing problems on liquidity pools, for example when someone adds liquidity on uniswap's one of pair, user get lp tokens so when we querying pair contracts we are able to lp token amount but not how much user invested is there any way to get know that amount user invest just by lp tokens or using pair contract or anything else

Mar 12, 2022, 8:46 AM
(lp bal of user / total lp minted) * token amount in pool
That includes the amount he received as trading fee too, but anyways
Mar 12, 2022, 9:06 AM
Thank you so much, i was trying to solve it from last two days
Mar 12, 2022, 9:27 AM

© 2024 Draquery.com All rights reserved.