The LiquidityManager and the Lendgine contracts contain duplicate logic, where both contracts track a mapping containing the size, rewards, and tokens owed. The only exception is that the Lendgine contract tracks it per user, and the LiquidityManager contract tracks it by owner to a Lendgine contract instance.
Action Items:
Get rid of LiquidityManager and consolidate accounting logic in Lendgine.
Description:
The
LiquidityManager
and theLendgine
contracts contain duplicate logic, where both contracts track a mapping containing the size, rewards, and tokens owed. The only exception is that the Lendgine contract tracks it per user, and the LiquidityManager contract tracks it by owner to a Lendgine contract instance.Action Items: