payjoin / nolooking

Batched Channels from a PayJoin ⚡️🔀
41 stars 8 forks source link

Always paying full RequiredReserve instead of topping it up #76

Closed DanGould closed 1 year ago

DanGould commented 1 year ago

RequiredReserve rpc "returns the minimum amount of satoshis that should be kept in the wallet in order to fee bump anchor channels if necessary"

Right now we're always adding that amount to the bip21 amount, when in reality we should only be adding the difference between our current on-chain reserve and the rquired reserve if the amount in the wallet is < the reserve