-
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.
add
calculate_short_proceeds_up
(#123)
# Resolved Issues Partially addresses #29 and #21 # Description These are steps towards implementing a parity implementation of open short as well as targeted short. - Add a function to calc short proceeds & round up, which is used in the Open Short flow. - Modifies calculate short proceeds down to look more like the up version. Since these functions are implemented on State, we preferentially use State member variables (e.g. `vault_share_price`) instead of passing arguments. The short proceeds is given by: $$ P_{\text{short}}(\Delta y) = \tfrac{\Delta y \cdot c_{1}}{c_{0} \cdot c} + \tfrac{\Delta y}{c} \cdot \phi_{f} - \Delta z(\Delta y) $$
- Loading branch information
Showing
2 changed files
with
138 additions
and
26 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