Repository navigation
Commit 713b4e2
committed
refactor: drop operation.positionManager, key active on fund + bound PM
The operation always runs against the instance-bound position manager, which
cannot change while active, so storing it on the operation record was pure
duplication. Remove the field:
- fund becomes the operation-active flag (both start paths set it, only
clearOperation clears it, and no fund can be the zero address since setFund
contract-checks it). isActive, _checkStart and setPositionManager's
active guard key on fund; checkActive keys on fund and returns the bound PM.
- consume/authorizeMinting/resolve read the bound PM from assets storage; the
operation() view derives its positionManager (bound PM when active, else
zero) instead of returning a stored field, keeping the same ABI and
semantics.
RetargetterOperation repacks to 7 slots (request now shares slot 0, fund + the
order mode share slot 1); the storage-layout and stray-order tests are updated.
Full suite 2347 passing, 74 invariants passing; the fund active flag is
mutation-checked. Retargetter runtime 23,953 B on the ci profile, 623 B under
EIP-170.1 parent 1ec46bd commit 713b4e2
4 files changed
Lines changed: 66 additions & 61 deletions
File tree
- src
- libs/manager/rebalancer
- manager/rebalancer
- test/manager/rebalancer
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
77 | | - | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | | - | |
139 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
140 | 142 | | |
141 | 143 | | |
142 | | - | |
143 | | - | |
| 144 | + | |
| 145 | + | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
| |||
305 | 307 | | |
306 | 308 | | |
307 | 309 | | |
308 | | - | |
309 | 310 | | |
310 | 311 | | |
311 | 312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
| 238 | + | |
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
| |||
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
278 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
279 | 282 | | |
280 | 283 | | |
281 | 284 | | |
| |||
306 | 309 | | |
307 | 310 | | |
308 | 311 | | |
309 | | - | |
| 312 | + | |
310 | 313 | | |
311 | 314 | | |
312 | 315 | | |
| |||
388 | 391 | | |
389 | 392 | | |
390 | 393 | | |
391 | | - | |
| 394 | + | |
392 | 395 | | |
393 | 396 | | |
394 | 397 | | |
| |||
595 | 598 | | |
596 | 599 | | |
597 | 600 | | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
607 | 610 | | |
608 | 611 | | |
609 | 612 | | |
| |||
730 | 733 | | |
731 | 734 | | |
732 | 735 | | |
733 | | - | |
| 736 | + | |
734 | 737 | | |
735 | 738 | | |
736 | 739 | | |
| |||
763 | 766 | | |
764 | 767 | | |
765 | 768 | | |
| 769 | + | |
| 770 | + | |
766 | 771 | | |
767 | | - | |
| 772 | + | |
768 | 773 | | |
769 | 774 | | |
770 | 775 | | |
| |||
780 | 785 | | |
781 | 786 | | |
782 | 787 | | |
783 | | - | |
| 788 | + | |
784 | 789 | | |
785 | 790 | | |
786 | 791 | | |
| |||
882 | 887 | | |
883 | 888 | | |
884 | 889 | | |
885 | | - | |
| 890 | + | |
886 | 891 | | |
887 | 892 | | |
888 | 893 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1062 | 1062 | | |
1063 | 1063 | | |
1064 | 1064 | | |
1065 | | - | |
1066 | | - | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
1067 | 1068 | | |
1068 | | - | |
1069 | | - | |
1070 | | - | |
1071 | | - | |
1072 | | - | |
1073 | | - | |
1074 | | - | |
1075 | | - | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
1076 | 1077 | | |
1077 | | - | |
1078 | | - | |
1079 | | - | |
1080 | | - | |
1081 | | - | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
1082 | 1083 | | |
1083 | | - | |
| 1084 | + | |
1084 | 1085 | | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
| 1086 | + | |
| 1087 | + | |
1089 | 1088 | | |
1090 | 1089 | | |
1091 | 1090 | | |
| |||
1098 | 1097 | | |
1099 | 1098 | | |
1100 | 1099 | | |
1101 | | - | |
| 1100 | + | |
1102 | 1101 | | |
1103 | 1102 | | |
1104 | 1103 | | |
1105 | | - | |
1106 | | - | |
1107 | | - | |
1108 | | - | |
1109 | | - | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
1110 | 1109 | | |
1111 | 1110 | | |
1112 | 1111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
0 commit comments