DeFiFoundry
50,000 USDC
View results
Submission Details
Severity: low
Invalid

Users may get less token than they should when they withdraw

Summary

The withdrawal process includes calling the gExchangeRouter.createOrder function with the order type MarketDecrease on the GMX contract. The call outputs the collateral token which is received by the Perpetual vault. However, according to GMX documentation, Decrease position orders can output two tokens instead of a single token...

This was not accounted for in the withdrawal process when swapping the index token to collateral token, after the settle function is called

Vulnerability Details

Impact

Users will receive less than expected amount when they withdraw.

Tools Used

Manual Review

Recommendations

Updates

Lead Judging Commences

n0kto Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

invalid_decreasePositionOrder_ouput_two_tokens_not_handled

Guardian’s audit H-05.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.

Give us feedback!