MarketIncrease and MarketDecrease order should not require gas for swaps.
When calculating the amount of gas fees the user need to deposit into gmxProxy, an extra gasPerSwap is calculated for MarketIncrease and MarketDecrease orders. Since we always set swapPath to empty when creating orders, there will be no swaps performed, hence this gas fee is not required.
https://github.com/CodeHawks-Contests/2025-02-gamma/blob/main/contracts/GmxProxy.sol#L155
Users pay extra gas fee.
N/A
Remove gasPerSwap for MarketIncrease and MarketDecrease orders.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
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.