Open jkrivine opened 2 years ago
I believe the code in question has moved to LiquidityProvider
: https://github.com/mangrovedao/mangrove-ts/blob/b2d781c0768ef6cfe288165d10586f2deae4d313/packages/mangrove.js/src/liquidityProvider.ts#L219
It is in the #constructPromise
in LiquidityProvider that uses subscribe and should be changed to the same style as in marketOrder
in trade
Buying and selling via
market.ts
no longer use subscription but fold directly through the log of the tx receipt. A similar scheme should be used inOfferLogic.ts
for the newOffer/updateOffer functions.It is faster for the maker and more robust. Synchrony with the cache of the OB is irrelevant as the maker knows it is up to date with the state of Mangrove.