-
Notifications
You must be signed in to change notification settings - Fork 40
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
Feature Request: Permissions to View Chain Balance #272
Comments
I like the idea of having it as a config option. Also, I agree the UX of spamming swap requests until you hit an available amount is pretty poor. |
I would also include advertising capacity for receiving Liquid. Both the scope of advertising (all | allow list | none) and the size of this capacity (min and max) should be configurable. Because currently the receiving peer also pays onchain fee for claiming. |
Agree with @Impa10r --I'd like to be able to configure a Peer like so:
I'm not particular to the key names or data structure but this is the rough idea of the things I'd like to be able to configure. |
one more config option that would be super helpful. Let me know if you'd like these filed as different tickets.
Since doing smaller swaps like 1M and less has a potentially high PPM compared to other methods, a node might want to avoid allowing tiny swaps. Especially since the receiver has to pay the chain fee on swap in. At a shared cost of ~300-500 sats, a swap of |
Regarding these extra restriction options, I just realized this could be a big deal for adoption and sustainability of the ecosystem. Among a group of us that are connected and using peerswap, one realized that he could This also could be solved by adding a service fee on top of the swap options--and it may be the only real solution since someone could still do this behavior at small scale. I'd also like to be able to set a policy that someone cannot |
Yes, don't keep large LBTC balances on the node. Spend it to rebalance some channel or do the bfx refill as you described. Devs are working on the swap premium feature. You can come up with a script that marks a peer suspicious given certain conditions. |
I suggest we start by adding ability to offer available BTC or Liquid balance directly to a selected peer (and remove such an offer by advertising 0). The peer will see these offers in I can try tackling this goal either:
What do you guys prefer? |
Implemented optional advertising of L-BTC balance to peers in PeerSwap Web UI v1.6.4. Update: in v1.6.6 you can also broadcast BTC balance. |
Hello,
Thanks for building PeerSwap, it's been amazing!
One thing I've noticed in using it with my collection of peers is that it would be great to be able to know what the
L-BTC
balance is on my allowed peer list prior to trying toswap out
. I don't see the harm in exposing this to peers that are in the allow list because they can brute force the information anyway by attempting to make a swap out and getting denied until it works--and unfortunately for the UX, this is often necessary. At least, exposing enough that full channel liquidity is covered is something you could brute force--maybe you don't need to know that someone has 20 L-BTC on-chain, but knowing that they can support a 5M satswap out
would be amazing. So if privacy is a concern it could just show the balance up to the point that aswap out
on that channel could consume--and maybeshow_chain_balance=full | swappable
could be a config option.I've had a few channel partners where I've wanted to swap out 5M sats, and get
State_SwapCanceled
withinsufficient walletbalance
, then try 4M, same result, 3M, same result, 2M, same result. Then I realize it's not worth reducing the request size and give up, but it's created 4 failed transaction payloads in mylistswaps
output.Counter to this request, I can see how it's useful to go through with the request so the recipient can be made aware of the demand for L-BTC that they don't have, but I think there could be a better way of probing for this. Ultimately, it would be ideal to see that they have no L-BTC, then initiate a special
pscli request
that allows them to know that there is need for it. This could potentially be worked into a telegram bot or other external fulfillment automation process as a pre-warming action to the requestor then attempting the swap.The text was updated successfully, but these errors were encountered: