+ Your Alby has grown up now. You have your own node and you also need + your own channels to send and receive payments on the lightning network. +
+ + {!albyMe && ( + <> ++ If you have funds on your Alby account you can use them to open your + first channel. +
+ + + + + > + )} + {albyMe && albyBalance && ( ++ Logged in as{" "} + {albyMe.lightning_address} +
+ + {albyBalance.sats >= MIN_ALBY_BALANCE && ( + <> + + + ++ You have {albyBalance.sats} sats to migrate +
+ > + )} + {albyBalance.sats < MIN_ALBY_BALANCE && ( + <> ++ You don't have enough sats in your Alby account to open a + channel. +
+ > + )} +-- or --
+ + + Fund & Open Channel + +{error}
; + } + + if (albyBalance.sats < MIN_ALBY_BALANCE) { + return ( +You don't have enough sats in your Alby account to open a channel.
+ ); + } + + /*if (channels.length) { + return ( +You already have a channel.
+ ); + }*/ + + const LSP_FREE_INCOMING = 100000; + const estimatedChannelSize = + amount - wrappedInvoiceResponse.fee + LSP_FREE_INCOMING; + return ( +Alby Account Balance: {albyBalance.sats} sats
+Invoice to pay: {amount} sats
++ LSP fee ({DEFAULT_LSP}): {wrappedInvoiceResponse.fee} sats +
++ Alby service fee: {Math.floor(amount * ALBY_SERVICE_FEE)} sats +
++ Alby fee reserve: {Math.floor(albyBalance.sats * ALBY_FEE_RESERVE)} sats +
++ Estimated Channel size: {estimatedChannelSize} sats +
++ Estimated sendable: {amount - wrappedInvoiceResponse.fee} sats +
++ Estimated receivable: {LSP_FREE_INCOMING - wrappedInvoiceResponse.fee}{" "} + sats +
+ +- Enter at least 20,000 sats. You'll receive outgoing liquidity of - this amount minus any LSP fees. You'll also get some incoming - liquidity. + Enter at least {MIN_0CONF_BALANCE} sats. You'll receive outgoing + liquidity of this amount minus any LSP fees. You'll also get some + incoming liquidity.