No incentive for the user to bring skew back to 0
Whenever a position is created, the trader has to pay an order fee. This is how it gets calculated:
Let's say the current skew is 10. The user wants to create a short position with a size of 9. Thus, the skew will change to 1. He will end up on the sameSide
block of the if statement and his fee will be calculated as 9 * makerFee (ignoring decimals for simplicity purposes). If the user is thinking whether to help the protocol by bringing the skew to 0 instead even though he only wants a position of 9, he will consider whether he is in some way incentivized to make his decision. He will see that instead of being incentivized, his fee will actually be bigger and will be 10 x makerFee instead. Thus, he will choose to bring it to 1 as he is not incentivized to bring it to 0 and 9 is the size of the position he actually wants.
No incentive for the user to bring skew back to 0
Manual Review
If the user brings skew to 0, do not charge him any fees to incentivize users to do so
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.