Commit d3f602a
authored
* Use safe functions more consistently in `calculateNetCurveTradeSafe`
* Fail if `calculateSharesOutGivenBondsInDownSafe` underflows
* Fixed the rust tests
* Improved the system's liveness when the present value can't be computed
* Improved the liveness properties of `removeLiquidity`
* Ignore `calculateLPSharePrice` failures in `removeLiquidity`
* Ensure that the ending indexes are valid in `HyperdriveFactory` getters
* Used unchecked arithmetic in several places
* Made the `LPMath` safer and used unchecked arithmetic
* Use unchecked arithmetic in the rest of the contracts
* Consolidated the derivative functions in the `LPMath` library
* Addressed review feedback from @jrhea
* Simplified the main loop of `calculateDistributeExcessIdle`
* Addressed review feedback from @Saw-mon-and-Natalie
* Addressed review feedback from @Saw-mon-and-Natalie
1 parent c56d094 commit d3f602a
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
752 | | - | |
753 | | - | |
| 752 | + | |
| 753 | + | |
754 | 754 | | |
755 | 755 | | |
756 | | - | |
| 756 | + | |
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
| |||
840 | 840 | | |
841 | 841 | | |
842 | 842 | | |
843 | | - | |
| 843 | + | |
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
850 | 850 | | |
851 | | - | |
| 851 | + | |
852 | 852 | | |
853 | 853 | | |
854 | 854 | | |
| |||
0 commit comments