When one market is disabled, the allowed behavior for this market is closing position or decreasing position. This limitation can by bypassed.
When one market is disabled, the allowed behavior for this market is closing position or decreasing position. The contract has one isIncreasing
check. If this order will increase the position, will not be allowed.
However, the vulnerability is that isIncreasing()
does not include all possible increasing position's scanraios.
For example:
Alices open one Long position with size 10 in market A.
The owner disables this markets.
If Alice wants one Short position, she can open one order with SHORT position with size -20 in market A. Then Alice will create one Short position with size -10.
Even if Alice want to enlarge her LONG position, Alice can create one SHORT position with size -20 in market A. This will cause self.size < 0
. And then create one LONG position with size +100 in market A. This will enlarge her LONG position.
Traders can bypass the disabled market limitation and go on trading on the disabled market.
Manual
If one market is disabled, the deltaSize's abs is not allowed to be larger than the previous position's size's abs.
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.