I'm building a defi dashboard. I need to value a DeFi wallet. I can value individual tokens that trade on a dex, and even LP receipts. But I'm having trouble with protocols like Adamant Finance, which do not give you a token receipt in your wallet. For example, this wallet has a $50 position in an Adamant vault (as of 1/5/2022). How would I detect this position and calculate its value using blockchain data, for example from PolygonScan?
https://debank.com/profile/0x704111edbee29d79a92c4f21e70a5396aedcc44a?chain=matic