-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit builds on top of 969ad6d and starts separating the fee logic from the new siloed donation buffer `D_rebalance`. Changes mainly involve `remove_liquidity_one_coin` where now half of the fees are used to increase `D_rebalance`. To keep the code clean changes that involve `D` and `D_rebalance` are only done in `tweak_price` which now supports an optional arguments containing the amount of fee that should increase the buffer for rebalancing `D_rebalance`. Therefore the changes in `tweak_price` focus on taking into account the new fees that can be used for rebalancing while the new rebalancing logic stays more or less unchanged. Also added significant improvements to the comments in `tweak_price`.
- Loading branch information
1 parent
e17e543
commit 5d72bdb
Showing
1 changed file
with
94 additions
and
24 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