Skip to content

Add support for liquidity ads#489

Merged
dpad85 merged 10 commits intomasterfrom
liquidity-ads
Dec 14, 2023
Merged

Add support for liquidity ads#489
dpad85 merged 10 commits intomasterfrom
liquidity-ads

Conversation

@dpad85
Copy link
Member

@dpad85 dpad85 commented Dec 14, 2023

This PR adds support for liquidity ads, that is, a way to request inbound liquidity from your peer (ACINQ) using a new feature from the Lightning protocol.

See:

Main changes:

4269317 adds the necessary plumbing in the shared module, especially the new database objects

f5c511d adds the new UI for the Android application.

Note that the UI for the iOS application will be done in another PR.


image image

A liquidity lease rate is provided to the peer at startup
using default values stored in the NodeParamsManager.

Aggregated queries have been updated.

Note that inbound liquidity payments use the `lockedAt`
timestamp to define if the payment is complete or not.

Also added a new `WalletPaymentId` for inbound liquidity
payments, with internal code 6.

Tests are missing. Cloud wrappers for inbound liquidity
payments are not yet implemented.
A new screen has been added to request liquidity from
the peer using liquidity-ads. The user can pick the an
amount, and get an estimation of the cost (mining +
service fee) of the liquidity. Then accept the offer, or
cancel the request by leaving the screen. The liquidity
is done with a splice.

A button to that screen has been added in the home screen
and in the liquidity policy screen.

The channels view screen also shows the current inbound
liquidity, using a linear progress bar.
@dpad85 dpad85 requested a review from pm47 December 14, 2023 14:36
@dpad85 dpad85 merged commit 374785d into master Dec 14, 2023
@dpad85 dpad85 deleted the liquidity-ads branch December 14, 2023 15:08
@dpad85 dpad85 mentioned this pull request Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants