diff --git a/curvesim/pool/cryptoswap/pool.py b/curvesim/pool/cryptoswap/pool.py index 67e09e02d..68d8a07c3 100644 --- a/curvesim/pool/cryptoswap/pool.py +++ b/curvesim/pool/cryptoswap/pool.py @@ -206,7 +206,7 @@ def _convert_D_to_balances(self, D): precisions = self.precisions n = self.n - return [D // n] + [ + return [D // n // precisions[0]] + [ D * PRECISION // (p * n) // prec for p, prec in zip(price_scale, precisions[1:]) ]