-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(2/3) keeper-based rebalance + rebalance options (#12)
* first stab at partial closures * introduce minimum remaining bonds threshold to avoid positions with very few bonds * fix * better partial estimation, fuzz tests, pricing edge case test * better comments, tighter tolerances * fixes to avoid underflow when trying to withdraw assets greater than everlong's _totalAssets * cleanup * remove console * no need for mature position slippage guards * slippage guard docs and partial closure test adjustments * convert rebalance to only be called by an external keeper Keepers are expected to use the configuration object to circumvent hyperdrive errors * notes for future self * better commenting and devex * testing cleanup + make rebalance opt-in for depositEverlong and redeemEverlong * rework spendingOverride into spendingLimit * wording
- Loading branch information
Showing
14 changed files
with
609 additions
and
174 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
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.