removes denom string parsing logic that derives user deposits from their bank deposits:
/duality/dex/user/deposits/{address} is now used to find this information
significantly reduces the amount the data needed to be fetched on the Pools page by introducing the concept of userEstimatedReserves which makes several fairly reasonable assumptions (that the liquidity is well arbitraged) to calculate an estimate of the user's token reserves total based on current market prices.
fixes real-time updating of user position reserves used in user position management (creating, updating, deleting)
455
removes a significant amount from the "global" indexer state object, working towards but not closing related issue:
290
makes the user reserves logic in general a lot easier to follow, with the refactor from the useUserShares hooks to the useUserReserves hooks, using less complicated types (avoiding the somewhat ambiguous tokenContext properties that were really only used to calculate user reserves)
this PR:
/duality/dex/user/deposits/{address}
is now used to find this informationuserEstimatedReserves
which makes several fairly reasonable assumptions (that the liquidity is well arbitraged) to calculate an estimate of the user's token reserves total based on current market prices.455
290