lightninglabs / lightning-terminal

Lightning Terminal: Your Home for Lightning Liquidity
MIT License
488 stars 82 forks source link

Loop in onchain estimate shows as 1 sat/vb when insufficient funds available to construct transaction #721

Open mrfelton opened 4 months ago

mrfelton commented 4 months ago

When attempting to perform a loop in for an amount that is greater than the amount of confirmed onchain funds, terminal's loop ui shows the estimated onchain fee as 1 sat/vb, even though lnd returned the error insufficient funds available to construct transaction

Expected behavior

It should show an error informing that there are not enough confirmed funds in the wallet. And potentially, it should give the option to spend unconfirmed funds.

Actual behavior

It shows the estimated onchain transaction fee at 1 sat/vb

To reproduce

Attempt a loop in for an amount greater than the total confirmed onchain funds in lnd.

System information

Terminal web, lnd 0.17.4