Commit 75dbcf0
Sachin
PerpV2 manager extension internal audit fixes (#10)
* Fix: _calculateCurrentLeverageRatio
* Fix failing tests
* Replace all .mul(-1) with .neg()
* Fix _trade javadocs
* Fix rebalance() javadoc
* Remove .only() from tests
* Fix ripcord() javadocs
* Fix: engage treats dust amounts as zero
* Add functions to IAccountBalance interface
* Add TWAP cooldown period in disengage
* Add warning to to disengage javadoc
* Fix PreciseUnitMath tests
* Engage: Check base position unit instead of balance
* Remove PreciseUnitMath lib and import from setprotocol package instead
* Update setprotocol dependency to 0.11.0
* Fix compile bugs
* Update yarn.lock file
* Fix yarn.lock1 parent 6b06438 commit 75dbcf0
File tree
10 files changed
+189
-918
lines changed- contracts
- extensions
- interfaces
- lib
- mocks
- test
- extensions
- lib
- utils
- common
- contracts
- deploys
10 files changed
+189
-918
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
30 | | - | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
Lines changed: 91 additions & 63 deletions
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments