The Widget Provider is lowercasing the passed fromToken and toToken addresses internally
digital-flowers opened this issue ยท 2 comments
digital-flowers commented
Hey everyone ,
The issue is that we use the events to store the user selected token internally but when we set it back to the widget the widget doesn't recognize the token balance, and when i look into the code it seems the WidgetProvider
internally lowercasing the fromToken
and toToken
addresses but the useTokenAddressBalance
hook looks for the token address in a case sensitive approach.
Also it seems that this issue is already fixed in your version 3 alpha but can we apply this fix also on the current version 2? just remove the toLowercase()
from the WidgetProvider
.
Thank and sorry for the headache :)
chybisov commented
@digital-flowers hey, should be fixed in v2.9.5 ๐
digital-flowers commented
@chybisov thank you, awesome work :)