File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments