Casting is not protected by SafeMath and could overflow. There is one case where this may happen.
Technical Details
This line of StopLossLogic casts a uint256 dy_diff to an int256 value. It is possible a very large unsigned value would be converted to a negative number.
Impact
Informational.
Recommendation
Consider protecting against this casting overflow.
Casting is not protected by SafeMath and could overflow. There is one case where this may happen.
Technical Details
This line of StopLossLogic casts a uint256
dy_diff
to an int256 value. It is possible a very large unsigned value would be converted to a negative number.Impact
Informational.
Recommendation
Consider protecting against this casting overflow.