Skip to content

Commit 709ce50

Browse files
committed
WIP
1 parent 775168c commit 709ce50

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

TODO.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Liquidity Ads
2+
3+
## Tasks
4+
5+
- add fields to open channel API to request liquidity
6+
- add explicit option flag to specify what to do if the remote doesn't fund back
7+
- validate that the leasor doesn't cheat
8+
- add support for responding to an `open_channel2` that requests funds:
9+
- ensure we don't raise our relay fees above what was negotiated while the lease is active
10+
- disallow mutual close and force-close commands during the lease
11+
- disallow splice-out during the lease
12+
- change the format of commit txs
13+
- when buying liquidity:
14+
- when doing an RBF, must pay for the lease `fundingWeight` at the new feerate
15+
- verify our peer doesn't raise their relay fees above what was negotiated: if they do, send a `warning` and log it
16+
- ignore remote `shutdown` messages? Send a `warning` and log?
17+
- when the lease expires, "clean up" commitment tx?
18+
- probably requires an `end_lease` message?
19+
- lease renewal mechanism:
20+
- maybe unnecessary, it's just a splice that uses the `request_funds` tlv?
21+
22+
## Liquidity ads plugin
23+
24+
Implement the business logic that decides how much to contribute when accepting a `request_funds` in a plugin.
25+
Requires validation of the following fields from `open_channel2`:
26+
27+
- feerate -> it shouldn't be too high unless the buyer is paying for our inputs
28+
- lockTime -> must not be too far away in the future and must match the lease start
29+
- remote amount must allow paying the lease fees and the commit tx fees

0 commit comments

Comments
 (0)