diff --git a/curvesim/pool/cryptoswap/pool.py b/curvesim/pool/cryptoswap/pool.py index 7a22fa499..6cbc045fb 100644 --- a/curvesim/pool/cryptoswap/pool.py +++ b/curvesim/pool/cryptoswap/pool.py @@ -954,13 +954,12 @@ def _calc_withdraw_one_coin( assert i < self.n # dev: coin out of range xx: List[int] = self.balances.copy() - D0: int = 0 precisions: List[int] = self.precisions xp: List[int] = self._xp_mem(xx) if update_D: - D0 = newton_D(A, gamma, xp) + D0: int = newton_D(A, gamma, xp) else: D0 = self.D