thales-markets / contracts

Solidity contracts for Thales Markets

Home Page:https://thalesmarket.io/markets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AMM buyPriceImpact fails

danijelthales opened this issue · comments

If AMM has both UP and DOWN tokens (shouldnt happen through normal interactions), the buy price impact method will fail for an amount lesser than the amount of options in the contract