-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
calculatePresentValue
cleanup (#680)
* Cleaned up the `calculatePresentValue` function * Simplied the max buy case of `calculatePresentValue` * Fixed the broken test * Optimize the happy path of `calculateCloseLong` and `calculateCloseShort` * Fixed the Rust tests * Optimized `calculatePresentValue` * Moved `permitForAll` to `HyperdriveTarget0` * Addressed review feedback from @jrhea * Re-applied review feedback from @jrhea * Cleaned up the comments a bit more in `YieldSpaceMath`
- Loading branch information
1 parent
5264062
commit 22ab58e
Showing
16 changed files
with
505 additions
and
311 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 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.
Oops, something went wrong.