numotrade / numo2

🤖 Leverage on long-tail tokens.
Other
0 stars 0 forks source link

Dual accounting in LiquidityManager and Lendgine is error-prone #10

Open robertleifke opened 1 week ago

robertleifke commented 1 week ago

Description:

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: