You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
setStrategies() can store the same strategy more than once in the strategies array. This is specifically prevented in _addStrategy(), unlike many owner-controlled functions which have no safety guards.
setStrategies()
can store the same strategy more than once in thestrategies
array. This is specifically prevented in_addStrategy()
, unlike many owner-controlled functions which have no safety guards.Technical Details
_addStrategy()
does not permit a strategy to be added to thestrategies
array if it is already in the array. But the owner could usesetStrategies()
to do the same.Impact
Informational.
Recommendation
Remove the safety check for duplicate strategies in
_addStrategy()
which provides a false sense of security.The text was updated successfully, but these errors were encountered: