Skip to content
$1,000,000 in security audit grants are live now, Apply here →

Security review · November 2025

Multichain Referral Codes

for GMX

Guardian's review of Multichain Referral Codes for GMX, published November 2025. The report records 1 finding, including 1 medium.

Published
Review window
November 10 to 11, 2025
Chains
Arbitrum, Avalanche
Sector
Perpetuals
  • 0 Critical
  • 0 High
  • 1 Medium
  • 0 Low
  • 0 Informational

1 acknowledged

Scope

Findings 1

  1. M-01 Medium Code Registration Censoring Frontrunning Acknowledged
    Location
    Global

    Description

    Referral codes are first come first serve in GMX, and when a user initiates a cross-chain action to register a referral code they advertise the code they are looking to register in the composed message that is bridged.

    In the time before the bridged composed message is executed, another user could register the referral code immediately directly through the MultichainOrderRouter registerCode function which is open to be called natively on Arbitrum.

    The user could also register a referral code through the ReferralStorage contract directly.

    For unsuspecting users they may see that the referral code has been registered, without being aware that it was actually registered for another user.

    Recommendation

    Be aware of this frontrunning case and be sure to make users aware if their code was frontran and registered by another user. Otherwise encourage users to register codes directly on Arbitrum to avoid frontrunning risks.

More from GMX

All 44 reports
  1. Timelock Updates

    4 findings 4 findings: 3 low, 1 informational
  2. LayerZeroProvider Routing

    1 finding 1 finding: 1 medium
  3. Open Interest Updates

    5 findings 5 findings: 2 medium, 3 low
  4. Updates Branch

    2 findings 2 findings: 2 low

Put your code through the same review.

This review started with a conversation about scope. Tell us what you are building and we will plan yours with you.

Get a quote