Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for liquidity ads #489

Merged
merged 10 commits into from
Dec 14, 2023
Merged

Add support for liquidity ads #489

merged 10 commits into from
Dec 14, 2023

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
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.

None yet

2 participants