xmrk reloaded's Posts

Nobody cares about avoiding small UTXOs?

Posted over 1 year ago

I have coop closed a few channels recently with relatively low peer's balance (< 50k sats). I always tried to warn the peer first that he will receive relatively small UTXO, so it will be relatively costly to redeem it. Had one case of 20k sats, redeeming it will cost around 1% of the UTXO amount if the fees stay at 4 sats/vB. And those fee levels are incredibly low if you compare it to just a few months ago. 

And people I warned didn't care, which is a bit surprising and frustrating. But maybe I am too obsessed. Or more probably it only makes sense to invest time and effort in avoiding small UTXOs if you have a large node, many channels, and many UTXOs from closed channels. 

There are few ways to avoid small UTXOs.
1. Rebalance - send funds by lightning to this channel. You can use absurdly high lightning fee and still save sats. If you begin with 20k sats in your channel, you can try rebalancing another 20k sats with lightning fee of 1000-2000 ppm (=0.1-0.2%) which will most probably succeed, so you pay 0.1-0.2%, and thus you reduce your UTXO redeeming fee from 1% to 0.5%.
2. Run peerswap and do a liquid swap-in, with the new discount it costs around 30-50 sats, depends on number of liquid UTXOs you are redeeming. Only makes sense if you already have some L-BTC. You effectively do a free peg-out this way (swap L-BTC for real BTC) - first you get BTC via lightning in the channel, then you get real BTC when the channel is closed, and only pay this 30-50 sats Liquid on-chain fee . Note that peg-out normally costs you 0.1% of the amount + on-chain fees, so with peerswap you avoid this 0.1% fee.
3. Send your funds directly to some custodial wallet when closing the channel - specify  custodial wallet's deposit address as your delivery address  (option --delivery_addr of lncli closechannel). Yes, custodial is ugly and they can steal or shotgun-KYC you, but we are talking about small amounts. Another problem is that you just throw the hot potato - small UTXO - to the custodial wallet, they have to redeem it and pay the fee.
4. Send your funds directly to liquid peg-in address (I tried, it works), again with "lncli closechannel --delivery_addr" . If using peerswap and psweb, you can even do ClaimJoin - like CoinJoin but for transaction claiming your L-BTC after you sent your BTC to the federation. 

Note that you cannot achieve 0 balance on your side of the channel (unless it is already 0 and you haven't used the channel), because your balance cannot go lower than 1% of the channel capacity, and if you are under 1%, you can only go up, not down. 
Lightning Network Node
xmrk reloaded
Capacity: 1,800,112,322 SAT
Channels: 211