No description
Find a file
Elle Mouton 92d4aa0e06
multi: move RequiredPermissions to dedicated dir
This commit moves the RequiredPermissions map to its own directory so
that projects importing the permissions list dont need to import all the
dependencies of the pool package.
2022-06-14 15:07:39 +02:00
.github mock: Add mockgen workflow 2021-11-10 14:05:10 -08:00
account multi: bump to latest lndclient and lnd versions 2022-06-01 16:16:57 +02:00
auctioneer auctioneer: add new server account state to recovery 2022-06-08 12:41:23 +02:00
auctioneerrpc auctioneerrpc+mod: add new account state 2022-06-08 12:40:01 +02:00
chaninfo multi: bump btcec/v2 and btcutil to new versions 2022-03-28 15:22:41 +02:00
clientdb clientdb: add node filter lists to order tlv data 2022-04-22 00:26:38 -07:00
cmd cmd: parse allowed/not allowed nodeids order field 2022-04-22 00:25:18 -07:00
docs docs: update documentation 2021-12-14 20:28:14 -08:00
event multi: prepare for upcoming lnd v0.14.0-beta release 2021-10-20 19:25:54 -07:00
funding multi: bump btcec/v2 and btcutil to new versions 2022-03-28 15:22:41 +02:00
gen mock: Add mockgen workflow 2021-11-10 14:05:10 -08:00
internal/test multi: bump to latest lndclient and lnd versions 2022-06-01 16:16:57 +02:00
make build: remove darwin/386 as no longer supported by Go 1.15 2020-10-30 20:00:22 -07:00
order order: check node id filters when validating matches 2022-04-22 00:26:41 -07:00
perms multi: move RequiredPermissions to dedicated dir 2022-06-14 15:07:39 +02:00
poolrpc poolrpc: add list of allowed node ids to Order 2022-04-22 00:25:18 -07:00
poolscript poolscript: make sure negation works 2022-05-06 13:29:11 +02:00
scripts build: add release script ane Makefile modifications 2020-10-30 19:07:21 -07:00
sidecar multi: bump btcec/v2 and btcutil to new versions 2022-03-28 15:22:41 +02:00
terms multi: bump btcec/v2 and btcutil to new versions 2022-03-28 15:22:41 +02:00
.gitignore multi: rename project from llm to pool 2020-09-09 19:55:10 -07:00
.golangci.yml Makefile+lint: only limit concurrency on Travis 2020-06-24 09:58:17 +02:00
auto_sidecar.go sidecar: Init mailbox after server restarts 2022-02-17 12:53:46 -08:00
backoff.go sidecar: add simple exponential back off for mailbox reads 2021-06-25 14:59:11 -07:00
book.json docs: re-organize docs into new Gitbook compatible structure 2020-10-13 17:02:46 -07:00
channel_acceptor.go funding: enforce correct channel type is extended to bidder 2021-11-02 16:48:00 -07:00
config.go multi: bump btcec/v2 and btcutil to new versions 2022-03-28 15:22:41 +02:00
Dockerfile docker: bump go version + set arch platform 2022-04-13 15:29:39 -07:00
gen.go rpcserver: add Marshaler interface 2021-12-14 20:40:02 -08:00
go.mod auctioneerrpc+mod: add new account state 2022-06-08 12:40:01 +02:00
go.sum mod: bump auctioneerrpc and aperture versions 2022-06-02 18:32:40 +02:00
interfaces.go rpcserver: add Marshaler interface 2021-12-14 20:40:02 -08:00
LICENSE pool: add MIT license 2021-02-02 10:09:45 +01:00
log.go multi: bump lnd to version v0.13.0-beta.rc3 2021-05-25 20:25:16 +02:00
macaroons.go multi: move RequiredPermissions to dedicated dir 2022-06-14 15:07:39 +02:00
Makefile mock: Add mockgen workflow 2021-11-10 14:05:10 -08:00
marshaler.go multi: bump btcec/v2 and btcutil to new versions 2022-03-28 15:22:41 +02:00
mock_interfaces.go rpcserver: add Marshaler interface 2021-12-14 20:40:02 -08:00
README.md README: fix inprecise wording for execution fee 2021-12-16 10:42:47 +01:00
rpcserver.go multi: bump to latest lndclient and lnd versions 2022-06-01 16:16:57 +02:00
rpcserver_test.go multi: bump btcec/v2 and btcutil to new versions 2022-03-28 15:22:41 +02:00
run.go multi: bump lnd to version v0.13.0-beta.rc3 2021-05-25 20:25:16 +02:00
server.go multi: move RequiredPermissions to dedicated dir 2022-06-14 15:07:39 +02:00
sidecar_acceptor.go multi: bump btcec/v2 and btcutil to new versions 2022-03-28 15:22:41 +02:00
sidecar_acceptor_test.go multi: bump btcec/v2 and btcutil to new versions 2022-03-28 15:22:41 +02:00
version.go version: bump version to v0.5.6-alpha 2022-04-19 20:31:19 +02:00

Lightning Pool

Lightning Pool is a non-custodial, peer-to-peer marketplace that allows node operators that need inbound liquidity to pay node operators with available capital to open channels in their direction while retaining full custody of their funds. Pools first product is a Lightning Channel Lease - an inbound channel with a pre-agreed duration.

Efficient capital allocation is one of the most widely felt pain points when using the Lightning Network. Existing node operators do not have access to pricing signals to help determine where in the network their outbound liquidity should be allocated, and new node operators have no way to signal that they need new inbound liquidity. Lightning Pool brings these two sides together into a single market while allowing them to maintain custody of their funds.

Checkout our documentation to learn more. For more technical details, check out the technical white paper.

How it works

Lightning Pool is a non-custodial auction for liquidity where bids are kept private and trades clear periodically. Key aspects of Pool include:

  • Periodic clearing - Market does not clear continuously, instead, it clears every block (or after multiple blocks, if there are no bids that match with existing asks).

  • Non-custodial - Clients maintain an on-chain account that is a timelocked, 2-of-2 multisig with the auctioneer. These funds are fully in the users control at all times.

  • Sealed-bid - All orders are submitted off-chain to the auctioneer, so bidders dont have visibility into the bids of other participants

  • Uniform clearing price - All participants in a batch clear at the same price. If your ask is for 2% annualized interest, you will receive >=2%. If you bid 5%, you will pay <=5%.

  • Batched execution - Due to the account structure, the auctioneer is able to batch all completed orders into a single transaction, greatly reducing individual chain fees.

Installation

Download the latest binaries from the releases page.

LND

Note that Pool requires lnd to be built with all of its subservers and requires running at least v0.12.0. Download the latest official release binary or build lnd from source by following the installation instructions. If you choose to build lnd from source, use the following command to enable all the relevant subservers:

make install tags="signrpc walletrpc chainrpc invoicesrpc"

Usage

Read our quickstart guide to learn more about how to use Pool.

Marketplace Fee

Fees are calculated based on the amount of liquidity purchased. During the mainnet alpha, fees will range from 5-25 basis points of the matched amount.

Development

The Pool client is currently in early alpha and offers a simple command line application.

The Pool daemon exposes a gRPC API and REST API.

Troubleshooting

Join us on Slack and we'd be happy to help in any way we can. In the meantime please see our FAQs.

Build from source

If youd prefer to compile from source code, youll need at least go 1.14 and make.

Run the following commands to download the code, compile and install Pool:

$ git clone https://github.com/lightninglabs/pool
$ cd pool
$ make install

This will install the binaries into your $GOPATH/bin directory.

Compatibility

Lightning Pool requires lnd version 0.12.0-beta or higher (v0.13.3-beta or later is recommended).