Commit graph

68 commits

Author SHA1 Message Date
Wilmer Paulino
b87d7f6caf
pool: use correct order amount for min chan amt default value 2020-10-27 15:44:08 -07:00
Oliver Gugger
c7a44d8614
cmd/pool: fix min node tier 2020-10-15 12:21:32 +02:00
Oliver Gugger
1a0d7c4bc8
cmd/pool: show sat/vByte in order summary 2020-10-15 12:21:32 +02:00
Johan T. Halseth
37cedb0118
cmd/pool: allow ratings nodekey without named flag 2020-10-15 09:54:52 +02:00
Wilmer Paulino
fecb1a8398
pool: add min chan amt flag to order submission 2020-10-12 19:51:30 -07:00
Olaoluwa Osuntokun
43c6069e04 cmd/pool/auction: expose new ratings command, fill in ratings info for leases 2020-10-09 15:55:16 -07:00
Olaoluwa Osuntokun
0de4a2f20b cmd/pool: accept min_node_tier when accepting new bids 2020-10-09 15:55:16 -07:00
Olaoluwa Osuntokun
a65dfb9829 order: introduce new node tier system
In this commit, we introduce a new field to only bids (for now): a min
node tier. This node tier is meant to allow buyers to express the level
of "quality" they're interested in for a given purchased channel. This
quality is determined using the current server-side rating system. The
base node tier are those considered "above the cut", this is also the
default tier: t1. The next node tier is t0, and is the buckets all other
nodes fall in. As the tiers rise, the number of nodes in each tier
shrinks, as these are meant to be the upper percentile of all nodes.

NOTE: The way this is implemented is actually a _breaking change_ from
the perspective of orders as we add a new field, which is included in
the order digest, without also bumping the version.
2020-10-07 18:03:47 -07:00
Johan T. Halseth
60f33ca9aa
cmd/pool: add active_only CLI flag 2020-10-07 11:24:29 +02:00
Olaoluwa Osuntokun
281f2a17d2 multi: unify min/max durations into single field of LeaseDuration
In this commit, we replace the existing min/max duration system with a
single field that expresses the expected duration of a lease. Note that
we've left some of the exiting logic in place that select a duration
from a bid in an attempt to make this more of a "soft fork" which will
allow any existing orders to be cleared out as normal before we switch
over.

Once we add multiple durations (this commit assumes a single duration),
we'll need to modify the verification logic to be able to handle
multiple clearing prices for a given batch.
2020-10-05 17:57:16 -07:00
Oliver Gugger
5e90bd7c6f
cmd/pool: add verbose flag to list orders command 2020-10-01 13:16:59 +02:00
Olaoluwa Osuntokun
eb7020a060
multi: add order and clearing rate to leases, show absolute expiry 2020-09-17 17:40:30 -07:00
Wilmer Paulino
7c7dfd0c36
Merge pull request #78 from guggero/macaroons
Add macaroon authentication
2020-09-17 15:17:24 -07:00
Johan T. Halseth
294b0341c4
poolcli: output reversed chanpoint 2020-09-17 20:09:17 +02:00
Johan T. Halseth
6183319c5d
poolcli: default the default max fee rate to a more reasonable 100 sat/b
A high max batch fee rate would reserve a lot of the account balance for
fees.

Note that if the actual fee rate goes higher than the max batch fee rate
set, then the orders won't be included in the batch, and the default
must be overridden.
2020-09-17 09:48:43 +02:00
Johan T. Halseth
120a2abfbc
poolcli: use sat/vbyte instead of sat/kw for batch feerate 2020-09-17 09:48:42 +02:00
Oliver Gugger
b100fd3d6a
cmd/pool: add macaroon params to CLI 2020-09-17 08:37:22 +02:00
Wilmer Paulino
acfd41ca55
llm: add auction leases command 2020-09-15 11:57:26 -07:00
Oliver Gugger
9bdfe415a6
cmd/pool: add TLS params to CLI 2020-09-12 09:08:14 +02:00
Oliver Gugger
ce235cbc1d
multi: extract config validation
As a preparation to add more configuration paths for TLS, we first
extract the config validation and path cleanup into its own function.
2020-09-12 09:08:13 +02:00
Olaoluwa Osuntokun
1e0035d3d4
multi: fix import order 2020-09-09 19:55:16 -07:00
Olaoluwa Osuntokun
33678c0ee6
cmd: rename llmd and llm to poold and pool 2020-09-09 19:55:07 -07:00
Johan T. Halseth
5fd1e7b7b3
cli: print worst case chain fee and batch fee rate 2020-09-03 15:02:41 +02:00
Oliver Gugger
e6d168e3ee
llm: add tlsCertPath and macaroonPath flags 2020-09-03 09:57:40 +02:00
Oliver Gugger
139be1584d
server+llmd: extract setup code into Run function 2020-09-03 09:57:36 +02:00
Oliver Gugger
9f36c3937c
config+llmd: turn DefaultConfig into a function
To make sure the default configuration cannot be changed by multiple
instances of the daemon we return a new copy for each caller.
2020-09-03 09:56:10 +02:00
Wilmer Paulino
00443bafca
llm: add bumpfee subcommand for accounts 2020-09-02 12:30:08 -07:00
Wilmer Paulino
f71adf7b67
multi: re-purpose account close tx field to latest tx 2020-09-02 12:10:23 -07:00
Olaoluwa Osuntokun
b6a9637b3e
Merge pull request #43 from guggero/new-nodes-only
Partial Batch Reject [1/2]: Reject batch partially on funding error or duplicate nodes
2020-08-24 18:41:51 -07:00
Wilmer Paulino
31d290d660
llm: add fee related flags for close account cmd 2020-08-24 13:33:17 -07:00
Oliver Gugger
e42497a4c6
cmd/llm: add force flag to ask order submission 2020-08-19 09:12:50 +02:00
Oliver Gugger
9cab2779e6
cmd/llmd: remove committed binary 2020-08-19 09:12:50 +02:00
Olaoluwa Osuntokun
fa6842b8eb
cmd/llm/account: add available_balance to json account output 2020-08-18 16:52:45 -07:00
Oliver Gugger
3df4e2f005
multi: move FeeSchedule to terms package
As a preparation to avoid package import cycles when introducing more
generic terms, we move the FeeSchedule interface and its
LinearFeeSchedule implementation to the terms package.
2020-08-18 13:15:34 +02:00
Oliver Gugger
978950600c
multi: update aperture, use lndclient, remove loop
To get rid of the loop dependency, we update aperture (which now houses
all the LSAT code) and use the standalone lndclient repository.
2020-08-11 19:41:01 +02:00
Johan T. Halseth
a2abc187f3
multi: rename FundingFeeRate to MaxBatchFeeRate
The funding feerate field was previoulsy unused, so we rename it to
"max batch fee rate" in order to use it to communicate to the server the
maximum fee rate we are willing to pay to be included in a batch.

We also increase the default value to 500 sat/vbyte.
2020-08-07 16:34:07 +02:00
Oliver Gugger
68e0e68284
cmd/llm: add listauth command 2020-08-03 11:08:55 +02:00
Oliver Gugger
e61f333b49
cmd/llm/account: add conf_target, fee preview to new command 2020-08-03 11:08:54 +02:00
Oliver Gugger
220976ca37
cmd/llm: fix unnecessary help print 2020-07-17 10:01:35 +02:00
Olaoluwa Osuntokun
46534d07d0 cmd/llm: fix bug in order submit confirmation 2020-07-16 23:36:00 -07:00
Olaoluwa Osuntokun
8e7049baa0
cmd/llm: add new auction snapshot command
In this commit, we add a new CLI command that allows a client to
"browse" the prior outcome of batches.
2020-07-16 15:24:23 -07:00
Olaoluwa Osuntokun
16a77c19df
cmd/llm: modify order acceptance to show breakdown and hide fixed_rate
In tihs commit, we modify the order acceptance commands (llm submit ask
and llm submit bid) to take the final percentage rather than the fixed
rate. Historically we've seen that people find thinking in fixed point
arithmetic difficult. So instead of exposing this value, we now poll the
user for the amount their willing to pay or accept as yield for the
_entire duration_.

With this change, users only need to think about the lump sum coupon
payment rather than the internal fixed rate. This should also lend to
better price discovery as distinct orders may end up with the same
rate_fixed when converted at the end.

In addition to this change, we now show a break down of the order
parameters which includes the execution fee.
2020-07-14 18:28:23 -07:00
Olaoluwa Osuntokun
407a76f6dd
cmd/llm: add new cli command for auction fee 2020-07-14 18:28:21 -07:00
Olaoluwa Osuntokun
9af15f4326
cmd/llm: fix height parsing for new account 2020-07-02 18:46:30 -07:00
Olaoluwa Osuntokun
9b164aa9ed
llm+llmd: parse new oneof for account expiry 2020-07-01 18:40:51 -07:00
Olaoluwa Osuntokun
57fa63c237
multi: rename, fix modules 2020-06-21 19:37:00 -07:00
Wilmer Paulino
182bd1badf agora: add account deposit command 2020-06-17 18:34:56 -07:00
Wilmer Paulino
f521327cb5 clmrpc: add DepositAccount RPC 2020-06-17 18:34:54 -07:00
Oliver Gugger
adcb145e76 client+cmd: add recover command 2020-06-05 16:24:33 +02:00
Oliver Gugger
c46bfef959 client+clmrpc: unify data types for amounts, fees and blocks
We use the same proto message types everywhere for these kinds
of fields:
- absolute amounts (sats): uint64
- fee rates (sat/kWU): uint64
- fee rates (ppm): uint32
- blocks (absolute and relative): uint32

Additionally we unify the comments and remove the [ json_name = "" ]
declarations in the trader proto as they aren't needed with the
jsonpb marshaller that we use.
Then we align the naming of the account key to be called trader key
everywhere instead of user's sub key.
2020-05-27 14:33:34 +02:00