-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: D is computed before
tweak_price
`tweak_price` has been refactored to only compute `newton_D` when necessary for rebalance. Previously it would also compute it if called by the exchange method which hurts the readability of the function. Thanks to this change the argument `new_D` has now been renamed to `D_before_rebalance` for clarity and `K0_prev` has been removed since it's now directly used in the `–exchange` function, that was the only function overriding the default argument.
- Loading branch information
1 parent
b4b8063
commit 638d27b
Showing
1 changed file
with
12 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters