Closed sherlock-admin closed 1 year ago
hack3r-0m
high
getAdjustedLongAndShortTokenAmounts
unsatisfiable condition in getAdjustedLongAndShortTokenAmounts
if (poolLongTokenAmount < poolShortTokenAmount) { uint256 diff = poolLongTokenAmount - poolShortTokenAmount;
always reverts
} else { uint256 diff = poolShortTokenAmount - poolLongTokenAmount;
any market which has same long and short token will never work
z3 SMT checker
reverse the conditions
Duplicate of #165
hack3r-0m
high
unsatisfiable condition in
getAdjustedLongAndShortTokenAmounts
Summary
unsatisfiable condition in
getAdjustedLongAndShortTokenAmounts
Vulnerability Detail
always reverts
always reverts
Impact
any market which has same long and short token will never work
Code Snippet
Tool used
z3 SMT checker
Recommendation
reverse the conditions
Duplicate of #165