sifiorg / sifi

7 stars 1 forks source link

Token balances don't work in TokenSelector #134

Open boriskubrik opened 1 year ago

boriskubrik commented 1 year ago

We've previously used LiFi's /v1/user-wallet-balance for retrieving the user's token balances. We don't have an equivalent endpoint in @sifi/sdk, so we had to temporarily disable this in #123.

How should we handle this @xykota? Add a similar endpoint?

xykota commented 1 year ago

Can you recall the reason for now using the user's connected browser wallet for this? If there's a large number of tokens we could use multicall to not hit rate limits. Can you find out how other sites do it?

boriskubrik commented 1 year ago

~SideShift.ai uses DeBank's all_token_list endpoint. Can we implement the same for Sifi? @0xMikeRodriguez has experience with it.~