-
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
[Discussion] List of interface enhancements #1521
Comments
We should allow
Agree on these, but not high prio, we can keep them in here for now.
Disagree because most swaps will have two legs in future
IMO second part is the only way. So what you would want is to see (I agree) or to manage the remote channel balance? Sorry, I didn't get that clearly @raladev |
This modifies the `addpair` command to use the trading pair ticker format such as LTC/BTC used in different commands, while keeping the ability to specify currencies separately. Related issue #1521.
Good idea. #1522
I don't object to these but I'd agree these are low priority enhancements, making issues for each one and marking them as such or good first issue/help wanted would be good. The one I'm not sure about is the discover output but the other two should be fairly straightforward.
This makes sense, at least the part about the amount of the order that was successfully removed. The remaining quantity are hold quantity will always be equal. I think this is a functional change and slightly more important than the issues above. I think it would also be better for this to be its own issue.
I think this ties in with the sanity swap idea which accomplishes the goal of ensuring we can route orders but isn't so limiting as to require direct channels. It would take a decent amount of changing to potentially sensitive code to enforce this direct channel only requirement (especially if you want to ensure the channel remains open) so I don't think this is worthwhile, and like kilian said longer term it will be uncommon to only trade using direct channels.
Joint funded channels have been a work in progress on the lightning network for a while. I think it's a bit out of scope from the perspective of xud, once joint funded channels are natively supported we can try to leverage those, or in the meantime we can provide a channel opening service separately that opens balanced channels, but it's hard to do through xud alone I think. |
#1522 * change addpair interface in cli from 'addpiar BTC LTC' to 'addpair BTC/LTC' because this format is used in other places.
Got it. I thought a little more about this case. It seems the goal that I want to achive is swapping only with peers that I want. I want orderbook only with orders of whitelisted peer/peers and i dont want to see orders of peers that establish connection with my whitelisted peer (and as a result I got connection with them too). Is there solution for that in current setup that I missed?
I want to have opportunity to ask second xud to open channel with me without additional communication channels like site, TG or email. Problem:
My solution:
Note: |
No solution in the current setup, but a plan for the future: #179
Good question! The short answer: if the maker you are trading with is using a LightningServerProvider (LSP) like boltz, it will automatically open a channel to you to make this swap happen (in future, still some tbds how this could work especially also since the maker will need to pay the costs for opening the channel). If he doesn't, then you can use a similar service from Boltz to get a LTC channel with remote capacity by sending BTC on-chain to Boltz. If you don't want to use a LSP, which is centralized as you noted, but the only real way of automating and making things convenient in lightning - you will have to send a telegram message...
See above, in the default case the maker will pay for this. But I need to think some more how we could convince the maker to open a channel to a brand new taker that we know nothing about and might be just costing us money and even bail out of the trade.
I advise against this :) |
This modifies the `addpair` command to use the trading pair ticker format such as LTC/BTC used in different commands, while keeping the ability to specify currencies separately. Related issue #1521.
Background
I worked with xud during last weeks and as a result I collected inconveniences that I had to face. There is a little improvements and conceptual that should be discussed.
List
change addpair interface in cli from 'addpiar BTC LTC' to 'addpair BTC/LTC' because this format is used in other places.add option to build orderbook using orders only from peers that have direct channels with me - as a user, I dont want to get No route errors when fill order because of channel states of another(third) user.Add sort of mechanism to channel opening from second side. I found a very big minus for me in this system - for a successful trade I need remote balance for one of the currencies. There are two ways to get it: 1. push amount 2. liquidity maker should open channel with me for one currency.First is good only if I want to get profit in arbitrage and I have balances in both currencies and I completely trust the second side(because he can close channel forcely and I will lose push amount).
Second is better but we have no clear mechanism to say to second part something like "I opened 3 BTC channel with u and want buy LTC periodically from u, can u please open channel with me". And second part after recivivng can see that someone have active channel with 3 BTC balance and he asked about LTC channel with equivalent balance.
The text was updated successfully, but these errors were encountered: