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
exchangeTokens, which is called internally from create and exercise, uses the Uniswap V2 router to perform a trade of payment tokens to linked tokens. This trade is done with no validation of the price at which the trade will be executed. As a result, the pool may suffer losses due selling tokens below the market price.
Moreover, this may be exploitable by an attacker who sandwiches their call to create or exercise between two trades on the Uniswap pool which manipulate the price to the detriment of the pool, potentially allowing the attacker to extract either a portion of the option premium or the settlement payment of the option, respectively.
For more information on this class of attacks, please see the section on Swap Composability in the recent audit of Uniswap V2.
The text was updated successfully, but these errors were encountered:
We're planning on having a full review of the Options contract code as we had to focus on other areas to build a demo due to the hackathon deadline. We're aware of several vulnerabilities in the code as a result. We'll make sure to address this vulnerability at the same time.
exchangeTokens
, which is called internally fromcreate
andexercise
, uses the Uniswap V2 router to perform a trade of payment tokens to linked tokens. This trade is done with no validation of the price at which the trade will be executed. As a result, the pool may suffer losses due selling tokens below the market price.Moreover, this may be exploitable by an attacker who sandwiches their call to
create
orexercise
between two trades on the Uniswap pool which manipulate the price to the detriment of the pool, potentially allowing the attacker to extract either a portion of the option premium or the settlement payment of the option, respectively.For more information on this class of attacks, please see the section on Swap Composability in the recent audit of Uniswap V2.
The text was updated successfully, but these errors were encountered: