fudgebucket27 / Lexplorer

Loopring explorer alternative
14 stars 10 forks source link

Pools and pairs and pool token support #187

Closed modersohn closed 2 years ago

modersohn commented 2 years ago

This tackles the long outstanding #63 without using the Loopring API but with some graphQL trickery:

image image
  1. It builds its own never expiring cache (since the information cannot change really).
  2. It has to make some assumptions (e.g. decimal places of pool tokens) but AFAICS these should all be okay.
  3. Some of this - but not everything - would have been easier with the token list from the Loopring API (and of course with an improved graph none of this would have been necessary), but I am actually quite fine with the way this turned out.

@fudgebucket27 and @danielsolistensvik I'd love to hear your take on this!

modersohn commented 2 years ago

So I take it you're agreeing with preferring the graph approach? Nice!