User is adding Unit price in eth for erc sold
which could be dangerous. Assuming that the user will input correct amount of ETH is very dangerous.
The vulnerability lies in the function createLimitShort()
where user-provided values for price
is used without sufficient validation or reliance on decentralized oracles for accurate pricing information. Leaving this argument in user hand is very dangerous as user can input any price that favors him
If exploited, this vulnerability could result in incorrect market behavior, leading to financial losses for users of the contract. In the worst case, it may even expose the system to malicious attacks.
Manual Review
It is recommended to get the price of asset from chainlink
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.