We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SimCurveCryptoPool
all versions
Please include information like:
SimCurveCryptoPool has a mutation bug in prepare_for_run:
prepare_for_run
self.last_prices = initial_prices self.price_scale = initial_prices self._price_oracle = initial_prices
Assigning the same object to these independent state variables will cause issues when one state variable is updated.
self.last_prices = initial_prices.copy() self.price_scale = initial_prices.copy() self._price_oracle = initial_prices.copy()
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Version Information
all versions
What's your issue about?
Please include information like:
SimCurveCryptoPool
has a mutation bug inprepare_for_run
:Assigning the same object to these independent state variables will cause issues when one state variable is updated.
How can it be fixed?
The text was updated successfully, but these errors were encountered: