primitivefinance / DFMM

Smart contracts of the DFMM protocol
https://www.primitive.xyz/blog/dfmm_protocol
18 stars 6 forks source link

Fix/total liquidity init #107

Closed clemlak closed 3 months ago

clemlak commented 4 months ago

Cf https://github.com/cantinasec/review-primitive-excalibur/pull/4#discussion_r1530038727.

clemlak commented 4 months ago

This issue is fixed for ConstantSum: we are recomputing the total liquidity directly in init. For other strategies, we need to find the correct bounds.