walletdeposit DAI failed:mainnet > walletdeposit dai
Error: 9 FAILED_PRECONDITION: swapClient for currency DAI not found
Describe your issue here.
any other relevant environment details:
see above.
DAI deposit address generated.
error shown above.
mainnet > listpairs
Trading Pairs:
โโโโโโโโโโโโโโโโ
โ Trading pair โ
โโโโโโโโโโโโโโโโค
โ ETH / BTC โ
โโโโโโโโโโโโโโโโค
โ LTC / BTC โ
โโโโโโโโโโโโโโโโค
โ LTC / USDT โ
โโโโโโโโโโโโโโโโค
โ BTC / USDT โ
โโโโโโโโโโโโโโโโค
โ ETH / DAI โ
โโโโโโโโโโโโโโโโ
mainnet > listcurrencies
Currencies:
โโโโโโโโโโฌโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ
โ Ticker โ Digits โ Token Address โ Swap Client โ
โโโโโโโโโโผโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโค
โ BTC โ 8 โ โ Lnd โ
โโโโโโโโโโผโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโค
โ LTC โ 8 โ โ Lnd โ
โโโโโโโโโโผโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโค
โ ETH โ 18 โ 0x0000000000000000000000000000000000000000 โ Connext โ
โโโโโโโโโโผโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโค
โ USDT โ 6 โ 0xdAC17F958D2ee523a2206206994597C13D831ec7 โ Connext โ
โโโโโโโโโโผโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโค
โ DAI โ 18 โ 0x6B175474E89094C44Da98b954EedeAC495271d0F โ Connext โ
โโโโโโโโโโดโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโ
I think this is likely related to #1746 and #1111. I'll revisit those to make sure the steps above work. Does restarting xud allow the walletdeposit call to succeed?
In addition to the above issues we'll also need to activate DAI from the connext node. Otherwise, it won't accept deposits (openchannel will be rejected).
In addition to the above issues we'll also need to activate DAI from the connext node. Otherwise, it won't accept deposits (openchannel will be rejected).
How can we reach a point where users supply arbitrary ERC20's?
I think this is likely related to #1746 and #1111. I'll revisit those to make sure the steps above work. Does restarting xud allow the
walletdepositcall to succeed?
Confirmed. Restarting the entire environment (including xud) allowed walletdeposit DAI to succeed.
After restarting environment, depositing DAI was successful. It shows up under wallet balances.
Opening a channel fails, as @erkarl predicted (:
mainnet > getbalance
Balance:
โโโโโโโโโโโโฌโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Currency โ Total Balance โ Channel Balance (Tradable) โ Wallet Balance (Not Tradable) โ
โโโโโโโโโโโโผโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ BTC โ 0.0396386 โ 0.0396386 โ 0 โ
โโโโโโโโโโโโผโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ DAI โ 200 โ 0 โ 200 โ
โโโโโโโโโโโโผโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ ETH โ 0.796892 โ 0.7 โ 0.096892 โ
โโโโโโโโโโโโผโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ LTC โ 0 โ 0 โ 0 โ
โโโโโโโโโโโโผโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ USDT โ 0 โ 0 โ 0 โ
โโโโโโโโโโโโดโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
mainnet > openchannel DAI 200
Error: 2 UNKNOWN: failed to open DAI channel for 20000000000: connext server error 500: Internal Server Error
mainnet > openchannel DAI 199.9
Error: 2 UNKNOWN: failed to open DAI channel for 19990000000: connext server error 500: Internal Server Error
mainnet > openchannel DAI 199
Error: 2 UNKNOWN: failed to open DAI channel for 19900000000: connext server error 500: Internal Server Error
Splitting out DAI-payment-channel issue to separate issue.
This issue centers around unable to
walletdepositThe workaround is to restart the environment.
Splitting out DAI-payment-channel issue to separate issue.
Makes sense, thank you! I marked this issue as fixed by https://github.com/ExchangeUnion/xud/pull/1746.
Most helpful comment
Makes sense, thank you! I marked this issue as fixed by https://github.com/ExchangeUnion/xud/pull/1746.