Thursday, December 29, 2022

Graph-theory pop-quiz: remove risky FIN order books

Graph-theory pop-quiz.


This graph represents the FIN marketplace.

Isn't it glorious?

It was generated from a copy-pasta of the FIN marketplace `stamp`ed into $FIN_DIR/market.lsv

which then ./graphista created CSV to load into an Aura @neo4j instance.

That isn't the quiz, however. That's the HOWTO.

The quiz is this: ./vern, my main man, ./vern has a preference to recommend arb-paths that include ATOM/OSMO or SCRT or STARS, all of which, I have found, are dead-ends for my tokens.


Remove these token-sinks from the graph. 

CAVEAT: 

I won't mind of you remove the $SCRT and $STARS tokens altogether.

I will be quite put out of you remove either the $ATOM or $OSMO tokens. Remove NEITHER $ATOM NOR $OSMO.

Those have viable arb-paths (just not viable ones that are ATOM/OSMO or OSMO/ATOM-adjacent). 

DEFINITION of DONE:

Queries against the graph generate arb-paths for all-isomorphic-paths.csv that do not include ATOM/OSMO, OSMO/ATOM, nor SCRT nor STARS.

ATOM-OSMO.csv, OSMO-ATOM.csv, and all other CSV files in ch08/efficacy/data/ become obsolete (why?) 









No comments:

Post a Comment