acala.js icon indicating copy to clipboard operation
acala.js copied to clipboard

test error swap-on-dex

Open elephone opened this issue 2 years ago • 2 comments

https://github.com/AcalaNetwork/acala.js/wiki#swap-on-dex

1.first error information

VEC: Unable to decode on index 0 createType(Lookup146):: Tuple: failed on 0:: Cannot map Enum JSON, unable to find 'DOT' in token, dexshare, erc20, stableassetpooltoken, liquidcrowdloan, foreignasset

2.secode

Fixed18.fromNature(0.005)
                ^
TypeError: Fixed18.fromNature is not a function

elephone avatar Jul 19 '22 15:07 elephone

the docs may be outdated. using {Token: "DOT"} to query token information

qwer951123 avatar Aug 01 '22 06:08 qwer951123

Thanks for your reply. I'll give it a try

elephone avatar Aug 01 '22 07:08 elephone