When traders close their position, the skew may increase. This could cause dos if the increasing skew triggered maxSkew.
In zaros, there is one parameter maxSkew
. maxSkew
aims to prevent the difference between long position value and short position value too large. This may cause too much system risk. When traders create one order, the system will check to make sure the skew will not exceed maxSkew
.
The vulnerability is that normal traders may fail to close their positions. Considering below scenario:
Alice chooses to create one SHORT order in market A.
Most traders to create one LONG order in market A. Currently, the current skew reaches maxSkew
.
Alice wants to close her SHORT position, this will cause current skew will exceed maxSkew
, and Alice's operation will be reverted because of ExceedsSkewLimit
Normal traders' positions may not be closed. This will lead traders exposed to risks. Maybe they will be liquidated.
Manual
If traders want to close or decrease their position, the skewLimit should not take effect on this case.
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.