mangrove.js icon indicating copy to clipboard operation
mangrove.js copied to clipboard

refactor `LiquidityProvider` and `OfferLogic` classes

Open jkrivine opened this issue 2 years ago • 1 comments

The overall structure should be:

  • OfferLogic should contain all functions that do not require a specific market (a base and a quote) to interact with Mangrove. for instance new offer can be posted directly from OfferLogic but one has to provide an OfferList (outbound, inbound)
  • LiquidityProvider is OfferLogic on a specific market it has a [new/udpate]ask and [new/update]bid functions and essentially delegates all code to OfferLogic with the correct orientation of tokens

jkrivine avatar Jun 13 '22 10:06 jkrivine