Commit cbbf9cf
fix: dont call strategy if we have no burnable shares (#1106)
**Motivation:**
Fixes an issue arbitrary external contracts could be called via
`StrategyManager.burnShares`. (Certora L-04)
**Modifications:**
`StrategyManager.burnShares` does not do an external call if the
burnable share amount is zero
**Result:**
Should no longer be possible to call untrusted code directly through
`burnShares`1 parent 5a6b46c commit cbbf9cf
File tree
2 files changed
+8
-2
lines changed- docs/core
- src/contracts/core
2 files changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
| 302 | + | |
301 | 303 | | |
302 | 304 | | |
303 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
163 | 167 | | |
164 | 168 | | |
165 | 169 | | |
| |||
0 commit comments