From fe015115786f52d6391102e279e5fe6ba2638331 Mon Sep 17 00:00:00 2001 From: Chan-Ho Suh Date: Mon, 25 Sep 2023 12:07:38 -0400 Subject: [PATCH] Minor cleanup --- curvesim/pool/cryptoswap/pool.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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