Commit e4884a0
Perpetual tranche v1.1.0 updates (#126)
* Updated math lib in perp
* comment updates
* code cleanup, function always checks for deposit bond rather than one passed in the param
* allowing address(0) to be keeper
* rollover whitelist
* tested perp upgrade on testnet
* moved event to interface as it does not alter the storage layout
* added helper method to perp to calculate value of tranches held in the system
* unit test to ensure winddown
* Apply suggestions from code review
Co-authored-by: Brandon Iles <brandon@fragments.org>
* deployed to goerli
* bumped up solidity version
* renamed roller vairable
* moved only owner methods out of the interface definition
* Added natspec comments to the interface
* using math libraries inline
* making authorizeRoller idempotent
---------
Co-authored-by: Brandon Iles <brandon@fragments.org>1 parent 73dc4ff commit e4884a0
File tree
27 files changed
+779
-119
lines changed- spot-contracts
- .openzeppelin
- contracts
- _interfaces
- _utils
- strategies
- test
- mocks
- test
27 files changed
+779
-119
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
Lines changed: 12 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 17 | | |
53 | 18 | | |
54 | 19 | | |
| |||
108 | 73 | | |
109 | 74 | | |
110 | 75 | | |
| 76 | + | |
111 | 77 | | |
112 | 78 | | |
113 | 79 | | |
| |||
131 | 97 | | |
132 | 98 | | |
133 | 99 | | |
| 100 | + | |
134 | 101 | | |
135 | 102 | | |
136 | 103 | | |
137 | 104 | | |
| 105 | + | |
138 | 106 | | |
139 | 107 | | |
140 | 108 | | |
141 | 109 | | |
| 110 | + | |
142 | 111 | | |
143 | 112 | | |
144 | 113 | | |
145 | 114 | | |
| 115 | + | |
146 | 116 | | |
147 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
148 | 123 | | |
| 124 | + | |
149 | 125 | | |
150 | 126 | | |
151 | 127 | | |
| 128 | + | |
152 | 129 | | |
153 | 130 | | |
154 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments