bid orders: remove restrictions on self_chan_balance and min_chan_size

Aperta
#238 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
go
Ambito
backend

Direzione di ricerca

Esamina PR 232 e traccia il comportamento attuale di convalida e abbinamento degli ordini di offerta per self_chan_balance. Conferma come dovrebbero funzionare l'esecuzione una tantum e il valore dell'account non riservato, quindi risolvi le questioni aperte relative all'economia della commissione di servizio prima di definire i test di completamento.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

batch execution enhancement feature request fees orders

This is a follow-up to the self_chan_balance implemented in https://github.com/lightninglabs/pool/pull/232.

To simplify the first iteration, any bid order submitted with a self_chan_balance has the following restrictions:

  • min_chan_size == bid_order_amount: Disallows partial matches
  • self_chan_balance <= bid_order_amount: Disallow the taker putting more capital into the channel than is actually leased from the market

This is not optimal for some use cases. For example one can imagine the following scenarios:

  • "I want a channel as large as possible, but it has to be at least of size M to be usable for me, with a local balance of N sats."
  • "I have some sats left in my Pool account, I just want to push them into a channel of whatever size and close it in the process."

Proposed solution:

  • Allow a bid order with a self_chan_balance to be matched exactly once (move it to EXECUTED directly, even if it could theoretically be matched again). That way the self_chan_balance would only be charged from the account once.
  • Remove the restriction on the size of self_chan_balance itself and only make it dependent on the unreserved account value. Since this would allow the taker to use Pool to open large channels with their own capital without paying execution fees (other than the base fee and chain fees) on that amount we'd need to think about adding a new service fee or bumping the base fee enough to still make this economically for the Pool server.
Lingua principale
Go
Stelle
256
Fork
53
Merge medio
20h 22m
PR unite (30g)
5

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di lightninglabs/pool

Tutte le issue di lightninglabs/pool

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.