-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add deposit/withdraw wallet calls to SwapClient #1062
Comments
Another idea is to unify |
I'm working on this issue. |
Awesome, for the initial iteration I'd go for |
Thinking about this again, I believe it's nicer to simplify the current
What do you think? @krrprr @erkarl |
@kilrau I'm OK with your proposed solution. |
@kilrau I like this approach. |
Great! Updated the issue. |
Should the wallet balance column display the value of |
|
Since raiden lacks wallet functionality, I'm wondering what to do. Should we go for a geth web3 call and eth confirmations equal to 10 minutes (lnd defines confirmed as |
How about something like:
I figure that "pending" balance may be confused with "unconfirmed" balance like a transaction into your wallet that's not in a block yet. Calling Splitting up the data into 6 columns would get pretty wide, and most of the time the pending/unconfirmed balances will be 0, so we can stick to the 4 columns above with parentheses as needed. |
Agree on the table still not being 100% clear, since you read "Balance" as total balance whereas I meant "Channel Balance" - only tradable balance is "balance". Anyhow, that might not hold for all users. Also agree that 2 columns are much better! Including a new
"pending" and "unconfirmed" are the same thing, a transaction which is yet to receive enough block confirmations to be regarded as final by lnd/raiden. No matter if it's tx into the wallet or a channel funding tx. I like the generic "pending" better, since since it's sometimes several confirmations before a tx is regarded as final, depending on the chain. So "unconfirmed" is confusing. Let's also not forget, that we have not-so-technical users which will understand "pending" better. That all ok with you? @sangaman |
I don't think we need to specify which is tradable and which is not tradable, although specifying "total balance" is fine.
But they are different, at least how I understand them and how they are used in lnd. "Unconfirmed" is an on-chain transaction into an lnd wallet that has been broadcast but which has not received the minimum number of confirmations. "Pending" (as in "pending channel") is a channel funding transaction that has been broadcast but has not received the minimum number of confirmations - this is consistent with the usage in lnd. "Pending" balance will be available for swaps & lightning payments imminently and without further action. For regular on-chain transactions that don't involve payment channels, I think "unconfirmed" is widely used (by wallets, exchanges, block explorers, etc...) to describe a transaction that hasn't been confirmed yet, whereas I never see "pending" used to describe such a transaction. I would also expect any pending or unconfirmed balance to be included in the "total" balance - for one thing it may appear that the user has lost funds in cases where they have just opened or closed a channel and their "total balance" as reported by xud decreases. I do think it would be good to be explicit in the comments/descriptions for these terms in our API documentation, though. |
What about including pending/unconfirmed balance in the total balance in the way it is displayed in channel/wallet balance? Then it's even clearer as there are probably several interpretations on what to expect from "total balance". |
Personally I think "Total Balance" is fairly clear that it adds up all types of balances, and there's already a breakdown of what is pending/unconfirmed to the right of it, so I don't think we'd need to break it down again with the total column (there's not much space in a terminal so we need to be succinct). |
To wrap this up:
Yes, of course. Good catch - my mistake!
I think we should - I believe it's it's a valuable hint for anybody who is not familiar with how things work "under the hood". And we can still remove it if people should feel annoyed.
Actually you are right, they are different:
|
I think adding tradable / not tradable makes sense. It does not take up that much space as it is only specified in the header. But it can be a good hint for somebody. Unconfirmed seems actually accurate in the wallet balance context as the |
Yes,
So unless @sangaman shoots in a veto today, let's go for |
OK I'll see how it looks with pending & the "tradable" designations, thanks. |
This adds new rpc calls that allow to get new deposit addresses and withdraw coins via xud. Currently these calls only support lnd. Closes #1062.
This adds new rpc calls that allow to get new deposit addresses and withdraw coins via xud. Currently these calls only support lnd. Closes #1062.
Add to SwapClient interface, implement for LNDClient only:
deposit <currency>
(p2wkh
only is fine, for other options users can fall back to lncli)withdraw <amount> <currency> <destination> [fee]
: fee in sat/lit per byteThe text was updated successfully, but these errors were encountered: