feat(lightning): a member asks the group to add inbound liquidity (liquidity, Phase 7)
GroupLightningLiquidityScreen asks as Phoenix asks its owner: Phoenix's amounts on a discrete slider, less those the LSP does not sell and those past the channel cap; the miner fee, service fee, its year and the total, priced on this device from the operator's report with lightning-kmp's own arithmetic (LiquidityPrice, which matches what eclair charged on regtest to the sat); Phoenix's warning at a quarter of the amount and its stop at the balance; a fee cap with room above the estimate; and a review sheet with Phoenix's acknowledgement. Then a proposal, and the signing session it opens. The wallet screen gains Add liquidity on its balance card, or the reason it is not there, a purchase's state on its channel row, and Inbound liquidity added in its payment list (a nullable liquiditySat on the payment row, in schema 35). The room gets a line when a purchase locks or fails. All of it is behind GroupLightningRollout.LIQUIDITY_ENABLED, off until the regtest run passes; the operator's node buys nothing while it is off. m3Audit meets every budget. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
be90715dd3
commit
db7d12b606
21 files changed
+803
-19
No files matched your search
@@ -753,6 +753,33 @@
|
||||
<string name="wallets_already_guarded_keep_their_delay">Wallets already guarded keep the delay they were guarded at.</string>
|
||||
<string name="members_on_older_apps_can_only_be_guarded_at_12">Members whose app is older than this one can only be guarded at 12 blocks, and don't know this group can close.</string>
|
||||
<string name="ask_the_group">Ask the group</string>
|
||||
<string name="add_liquidity">Add liquidity</string>
|
||||
<string name="plan_ahead_your_liquidity">Plan ahead your liquidity</string>
|
||||
<string name="liquidity_lets_the_group_receive_more">The LSP adds this much to the channel, so the group can be paid that much more without the LSP splicing it first.</string>
|
||||
<string name="current_liquidity_s_sats">Current liquidity: %1$s sats</string>
|
||||
<string name="liquidity_to_add_s_sats">Liquidity to add: %1$s sats</string>
|
||||
<string name="the_channel_grows_from_s_to_s_sats">The channel grows from %1$s to %2$s sats.</string>
|
||||
<string name="miner_fee">Miner fee</string>
|
||||
<string name="service_fee">Service fee</string>
|
||||
<string name="duration">Duration</string>
|
||||
<string name="one_year">1 year</string>
|
||||
<string name="total">Total</string>
|
||||
<string name="after_a_year_the_lsp_may_reclaim">After a year, the LSP may reclaim the liquidity that is still unused.</string>
|
||||
<string name="the_fee_is_a_quarter_of_the_amount_or_more">The fee is a quarter of the amount or more.</string>
|
||||
<string name="the_fee_is_more_than_the_group_s_balance">The fee is more than the group's balance.</string>
|
||||
<string name="priced_at_s_sat_vbyte_in_term_s">Priced on your device at %1$s sat/vbyte, the feerate the operator reported in term %2$s. The miner fee may rise before the node buys.</string>
|
||||
<string name="buying_liquidity_asks_the_group_to_sign">Buying liquidity asks the group to sign. The operator's node buys it once enough members have, and every member's device checks the splice before it signs.</string>
|
||||
<string name="review_the_purchase">Review the purchase</string>
|
||||
<string name="liquidity_is_an_initial_amount">This is an initial amount of inbound liquidity. It is used up as the group is paid, and after a year the LSP may reclaim what is unused. The fee comes out of the group's balance.</string>
|
||||
<string name="i_understand">I understand</string>
|
||||
<string name="receive_a_payment_first_it_opens_the_channel">Receive a payment first: it opens the channel.</string>
|
||||
<string name="the_channel_holds_the_most_it_may_for_now">The channel holds the most a channel may on this network for now.</string>
|
||||
<string name="the_operator_hasn_t_reported_what_the_lsp_sells">The operator hasn't reported what the LSP sells yet.</string>
|
||||
<string name="the_lsp_sells_none_of_these_amounts">The LSP sells none of the amounts this app offers.</string>
|
||||
<string name="adding_s_sats_of_inbound_liquidity">Adding %1$s sats of inbound liquidity</string>
|
||||
<string name="waiting_for_the_last_splice_before_adding_s_sats">Waiting for the channel's last splice before adding %1$s sats</string>
|
||||
<string name="couldn_t_add_liquidity_s">Couldn't add liquidity: %1$s</string>
|
||||
<string name="inbound_liquidity_added_s_sats_for_s_sats">Inbound liquidity added: %1$s sats, for %2$s sats in fees</string>
|
||||
<string name="stop_guarding_new_wallets">Stop guarding new wallets</string>
|
||||
<string name="stop_guarding_new_members_wallets_question">Stop guarding new members' wallets?</string>
|
||||
<string name="wallets_already_guarded_stay_guarded">Wallets already guarded stay guarded, and this group can still take their coins after their delay.</string>
|
||||
|
||||
Reference in new issue
Block a user