Consider making offers expire
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 20/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Ambito
- distributed-systems, fintech-quant
Direzione di ricerca
Inizia leggendo CAP0-0003 e la discussione dell’issue sul comportamento dell’order book. Confronta gli approcci proposti di purge e deterministic-expiration, quindi determina se il protocollo necessita di una semantica e di una specifica definite; al momento, l’issue non indica file di implementazione, test o criteri concreti di completamento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
One of the things we learned with the protocol 10 rollout with changes like CAP0-0003 is that it's becoming increasingly hard to not break certain client business logic that rely on undocumented (something we can improve on for sure) or undefined behavior.
One aspect in particular is on how the order book functions: while the order book can "at any time" cancel or modify outstanding order, the issue is that those events happen so rarely that people may not realize that this is the case.
A simple way to turn the "improbable" into "certainty" (therefore hardening client code), would be to simply move semantics that are closer to how other markets work: force long lasting orders to be recreated at a regular time.
A couple possible approaches to start the discussion.
The purge
There could be a recurrent "purge" of the order book that deletes X% of the orders every T ledgers (both of these would be network parameters).
This approach seems to be close to what we want: non deterministic (due to the random nature) deletion of orders, which forces clients to not rely on any particular behavior of how the order book state is managed.
By having many ledgers between purge events, the "pseudo randomness" that comes with simple things like "ledger hash" is quite strong.
Deterministic expiration
We could also add an expiration time as a network parameter, we would pick something like a week or two as a starting point and offers would just automatically get deleted when they reach their expected life time.
The issue with that approach is that it only partially solves the problem: what if we want in a future upgrade or a future version of the protocol to delete certain offers? If client code relies on certain timing, it won't work.
A nice thing about this solution is that it's basically how standard order books work (be it "good for day" or "good until cancelled" that really means 30 or 60 days for most brokerage firms).
- Lingua principale
- RPC
- Stelle
- 634
- Fork
- 399
- Merge medio
- 23h 36m
- PR unite (30g)
- 8
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di stellar/stellar-protocol
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
stellar/stellar-protocol#2010 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
stellar/stellar-protocol#2027 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 42/100
stellar/stellar-protocol#1928 · 9 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Have a formal definition of sandwich transactionsForse di nuovo libera @JakeUrban l’ha presa 1790 giorni fa e non c’è nessuna pull request aperta. Apertaneeds draft SEP
stellar/stellar-protocol#773 · 12 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
CAP help wanted needs draft
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
stellar/stellar-protocol#324 · 11 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di stellar/stellar-protocol
Issue simili
-
status:in-linear status:team-assigned team:cats
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
n8n-io/n8n#39895 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
huggingface/accelerate#4353 ·
I maintainer di solito rispondono entro 1 giorno
-
bug priority/low scope/root
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 8 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
johanhaleby/occurrent#1156 ·
I maintainer di solito rispondono entro 1 giorno