mangrove.js
mangrove.js copied to clipboard
refactor `LiquidityProvider` and `OfferLogic` classes
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 fromOfferLogic
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 toOfferLogic
with the correct orientation of tokens