Skip to content

Commit

Permalink
Fix bug in unused branch in __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
chanhosuh committed Jul 13, 2023
1 parent a1a1b90 commit 83daf45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion curvesim/pool/cryptoswap/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:])
]
Expand Down

0 comments on commit 83daf45

Please sign in to comment.