Security review · November 2026
RewardRouterV3 & RewardRouterUtils for GMX
Guardian's review of RewardRouterV3 & RewardRouterUtils for GMX, published November 2026. The report records 20 findings across 2 review rounds, including 1 high and 8 low.
See how Guardian runs a perp DEX smart contract audit.
- Published
- Review window
- September 29 to October 20, 2026
- Rounds
- Main Review, Remediation Review
- Language
- Solidity
- Sector
- Perpetuals
- 0 Critical
- 1 High
- 0 Medium
- 8 Low
- 11 Informational
Scope
-
gmx-io/gmx-synthetics-private
f5f939a6867fbd664f3c
3 files in scope · 646 nSLOC
| File | nSLOC | Lines |
|---|---|---|
contracts/reader/RatioVesterReader.sol | 51 | 62 |
contracts/staking/RewardRouterUtils.sol | 109 | 139 |
contracts/staking/RewardRouterV3.sol | 486 | 636 |
Findings 20
Main Review
14 findings · September 29 to October 5, 2026-
H-01 High Default None voting mode leaves unbacked GovToken votes after V3 unstake stale governance state / governance takeover Resolved
Description
RewardRouterV3 leaves votingPowerType at the Solidity default None, while migration separately grants it tracker and GOV_TOKEN_CONTROLLER permissions before a later config-mirror action. In None, every _syncVotingPower call returns without comparing or burning GovToken. Thus a V2-staked account can have V3 unwind its complete tracker position while retaining its V2-minted GovToken balance and delegated votes. The fork PoC passes with a real deployment against the live Arbitrum V2 trackers, demonstrating full unstake, stale votes, and repeated cycling of one GMX amount through fresh accounts to inflate supply; it also successfully uses the stale votes in the live Governor to grant ROLE_ADMIN.
Impact: An ordinary holder can recover all GMX while retaining the voting weight that was backed by it. During the migration window, the same stake can be cycled through fresh accounts, producing arbitrarily many unbacked GovTokens with no additional capital. The demonstrated stale votes satisfy the live Governor threshold/quorum and execute a RoleStore.grantRole call, yielding protocol-wide role control and the ability to seize governed assets/configuration.
Recommendation
Do not expose tracker/GovToken handler permissions while the router is in None. Initialize and atomically mirror the intended voting mode before enabling V3 operations, or make setVotingPowerType reconcile all affected accounts and ensure unstake/transfer burns stale balances even in None. If None is retained as a disable mode, explicitly burn/reconcile existing router-issued votes and block stake/unstake until reconciliation; emit mode-change events and provide a non-no-op resync path.
-
L-01 Low A zero-rounded bnGMX reduction can block both exits from a mixed stake Rounding Resolved
Description
When a user withdraws GMX or esGMX,
_unstakeGmxremoves a proportional share of the account's staked bnGMX using integer division. If the account has 100 GMX, 100 esGMX, and exactly one bnGMX base unit staked, either full-component withdrawal calculatesfloor(1 * 100 / 200) = 0. The outer branch checks only that the staked bnGMX balance is nonzero, then calls both production reward trackers with the zero result. Their positive-amount guards revert the transaction, including the earlier principal unstake. Because each public route removes only one component, neither full-component exit can derive a positive reduction in this exact one-unit state.The trigger requires a supported configuration with a nonzero boost cap, one compounded bnGMX base unit, positive GMX and esGMX deposits, and no additional bonus unit compounded before withdrawal. Formula-only analysis of the canonical two-floor reward calculation and an isolated custody-bearing tracker model demonstrate that the one-unit arithmetic state is conditionally reachable; they do not reproduce live clock-based emissions or prove that current emission rates create it. Active emissions may make recovery immediate by accruing another unit that the user can compound. Governance can also reduce the cap to zero and the user can compound to return the one staked unit to the wallet.
There is no attacker profit or accounting theft, but both components of the user's principal can be temporarily unavailable. At the reviewed Arbitrum block
509962082, the configured V2 router had a zero boost cap and aggregate extended-tracker bnGMX deposits were zero. The V3 launch plan mirrors that cap, so the condition is dormant in the reviewed launch configuration. The same proportional arithmetic exists in V2, making this inherited behavior rather than a V3 regression.Recommendation
Be aware of and document this behavior or consider skipping the tracker unstake-and-burn sequence when
reductionAmount == 0. The remaining one-unit bonus balance can then be consumed when a later withdrawal produces a positive proportional result. Add a regression case with positive GMX and esGMX deposits and exactly one staked bnGMX base unit. -
L-02 Low Vester changes can split account transfers Business logic errors Resolved
Description
signalTransfervalidates the current designated vester list but records only the receiver. A timelock action can add or remove a vester beforeacceptTransfer, which validates and migrates only the list present at acceptance.If an omitted vester holds the sender's cap, converted usage, or unpaid claims, the stake and remaining vester states move while that state remains on the old address. The receiver is then no longer fresh in the vesters that already moved, so the residual rights cannot be reunited with the same receiver. This can happen during partial initial registration or when a vester is removed after a transfer is signalled. The migration script warns that initial registrations must be atomic, but the contract does not enforce that rule or protect pending transfers from later removals.
Recommendation
Be aware of and document this behavior. A signal records the receiver only, so adding or removing a designated vester before acceptance can leave that vester's cap, converted usage, or unpaid claims on the sender.
-
L-03 Low Strict-transfer authorization is checked against the wrong asset and never re-bound, so a zero allowance sweeps the GMX/esGMX/bnGmx/GLP position authorization / TOCTOU Acknowledged
Description
In strict-transfer mode, signalTransfer checks only the sender's current feeGmxTracker staked amount against the receiver allowance, then records only the receiver. It does not cover the independently migrated GLP leg and does not snapshot an amount or deadline. acceptTransfer does not revalidate the allowance before migrating the sender's then-current GMX, esGMX, bnGMX, and GLP position. Consequently, a GLP-only or empty sender can signal with zero allowance, and a delayed receiver can later accept after the position grows even though the allowance remains zero. This also contradicts the MultichainStakingUtils assumption that the approved exact amount cannot become stale.
Impact: After the sender has explicitly signaled a receiver, that receiver—or anyone later controlling its key—can accept an unbounded, non-expiring authorization and obtain GLP plus assets added after signaling that were never covered by the strict-mode allowance. This defeats strict mode's secondary approval safeguard, though exploitation still requires a prior sender signal, so Medium rather than High is appropriate.
Recommendation
At acceptance, revalidate strict-transfer authorization against the position being migrated. Bind the pending transfer to amounts for every migrated leg or invalidate it when the position changes, and add an expiry and explicit cancellation mechanism. Do not treat a zero feeGmxTracker balance as approval for an unrelated GLP position.
-
L-04 Low Legacy vester collateral can block V3 boost-cap reconciliation reward-cap-bypass Resolved
Description
RewardRouterV3._restakeForAccount temporarily pulls feeGmxTracker receipt tokens held by the legacy gmxVester as pair collateral, converts an old-layout bonus position, then returns the same collateral. RewardRouterUtils.stakeBnGmx can meanwhile remove over-cap extended-tracker bnGMX by unstaking its outer fee-tracker deposit. That first burns the account's fungible fee-tracker receipts. If too few receipts remain to restore the vester collateral, the return reverts and the entire reconciliation rolls back. For example, 100 base stake, 50 old bonus-in-fee, 1,000 extended bnGMX, a 100 bnGMX cap, and 400 receipt tokens of vester collateral cause a 900-receipt trim to leave only 250 for the 400-receipt return.
This requires an existing old-layout, over-cap account with legacy-vester collateral and a cap/configuration transition. The linked fork PoC uses live trackers and vester code, but grants the harness privileged handler/minter roles, mints the input tokens, sets legacy-vester stake history, and selects router modes to construct that state. It does not establish a comparable ordinary-user position at the planned zero-cap cutover. For an affected account, compound and restaking-dependent exits or batches can revert, while claimFees still pays against its unreconciled fee-tracker weight. BaseAndBonus voting effects require that governance-selected mode. Withdrawing from gmxVester releases collateral and permits reconciliation but interrupts the vesting position; no permanent principal loss is shown. This is a conditional, recoverable Low-severity migration/cap-enforcement issue related to I-01 and I-14.
Recommendation
Document the collateral constraint and identify affected accounts before V3 cutover or a boost-cap decrease. Reconcile old-layout and over-cap positions first; for an affected account, release legacy-vester collateral before retrying and record the vesting tradeoff. If reconciliation must preserve an open vester position, update router and vester collateral accounting together so the cap trim cannot consume receipts owed back to the vester. Merely moving the collateral return before the trim does not provide enough free receipts.
-
I-01 Informational Configuration and transfer lifecycle changes lack canonical router events Events Acknowledged
Description
The router's timelock configuration and list functions update storage without a router or
EventEmitterrecord. Likewise,signalTransferandacceptTransferdo not emit canonical router events when a pending receiver is created, overwritten, or consumed. An intended receiver therefore cannot discover an incoming signal from router logs without already knowing the sender, and an event-only indexer cannot distinguish an initial signal from an overwrite.Useful evidence remains available: current values are readable from storage, governance calldata and traces reveal configuration calls, tokens and trackers emit downstream logs, and each successful acceptance produces designated-vester transfer records containing both parties. An indexer can therefore infer some state transitions, but it must correlate several dependency events and transaction data instead of consuming a stable router event schema. This is an observability gap rather than an authorization or asset-safety failure; it can cause delayed alerts, incomplete historical dashboards, and transfer-status ambiguity.
Recommendation
Be aware of and document this behavior or consider emitting standardized
EventEmitterrecords for each configuration or list update and for transfer signal, overwrite, and acceptance. Include old and new configuration values and both transfer parties so indexers do not need to reconstruct a single logical operation from storage polling, calldata, traces, and downstream logs. -
I-02 Informational A lower boost cap requires collateral-aware account synchronization Configuration Acknowledged
Description
setMaxBoostBasisPointschanges the boost cap without synchronizing existing accounts. A lower cap reaches an account only when a later compound-style action callsRewardRouterUtils.stakeBnGmx; direct fee claims do not rebalance it.If a designated
RatioVesterholds the account's fee-tracker receipt tokens as pair collateral, a cap-down rebalance can fail. The rebalance first asks the fee tracker to unstake excess extended-tracker receipts, which requires burning fee-tracker receipts from the account, but those receipts are held by the vester. When the account's free balance is insufficient, both user and administrative compound attempts revert while fee claims remain available. The account can therefore retain its old above-cap reward weight and dilute other fee-reward recipients until the collateral is released.This is a trusted policy-transition constraint inherited from V2: users cannot cause governance to lower the cap, and the setter does not promise atomic synchronization of all accounts. At the reviewed Arbitrum block
509962082, the configured V2 router had a zero boost cap and aggregate extended-tracker bnGMX deposits were zero. The V3 launch plan mirrors that cap, so the trigger is dormant in the reviewed launch configuration. Principal is not permanently locked. The user can withdraw from the vester to recover the pair receipts and then compound to apply the lower cap, although doing so interrupts the existing vesting schedule.Recommendation
Be aware of and document this behavior or consider requiring a cap-decrease runbook that identifies over-cap accounts, handles designated-vester collateral, and verifies the resulting extended-tracker positions before treating the new cap as effective. If seamless enforcement is required, make cap-down cleanup collateral-aware, similar to the temporary legacy-vester receipt return in
_restakeForAccount. -
I-03 Informational Voting-basis changes require an explicit holder synchronization Configuration Acknowledged
Description
setVotingPowerTypeupdates the basis used by future account synchronizations but does not recalculate existingGovTokenbalances or delegated votes. For example, a holder with 13 votes under the base-plus-bonus basis can retain 13 after governance selects a base-only target of 10 by using only direct claim routes, which do not call_syncVotingPower. The balance is corrected only when a later stake, unstake, compound, reward-handling, transfer, or complete administrative batch synchronizes that holder.Selecting
Nonestops router maintenance of existing voting balances because_syncVotingPowerreturns immediately. It does not clear those balances. If governance activity proceeds before a transition is complete, holders can have balances and checkpoints calculated under different bases, potentially affecting proposal thresholds, quorum, or vote outcomes.This is a trusted policy transition, and the setter does not promise an atomic update of all holders. The reviewed launch retains the existing
BaseStakedAmountbasis, so no transition is currently planned. An active-to-active change can be completed through holder synchronization and a verified administrative batch. IfNoneis intended to retire voting power rather than stop router maintenance, balances must be explicitly burned or migrated before selecting it.Recommendation
Be aware of and document this behavior or consider publishing a holder-synchronization procedure for changes between the two active voting bases and verifying
GovTokenbalances against the new basis before relying on it for governance. Define the intendedNonesemantics explicitly: the current implementation stops router maintenance without clearing outstanding balances, so any required burn or migration should occur before selectingNone. -
I-04 Informational Aggregate GMX reward handling can succeed after silently skipping designated vesters Documentation Acknowledged
Description
The
_shouldClaimGmxoption combines extended-tracker GMX and designated-vester GMX into one best-effort action, but_claimVestedGmxsilently skips designated vesters when the V2-compatible handler sends tracker rewards to a receiver other than the account, when a vester's claim feature is disabled, or when the account is frozen on that vester. The extended-tracker claim and any eligible vester claims can still succeed, so transaction success does not establish that every requested GMX source paid. The handlers return no per-source result, and no event identifies the skipped vester or reason.The skip-on-pause and skip-on-freeze behavior is intentional so one vester does not disable the entire reward route. No value is lost: skipped GMX stays in the vester. For a disabled or frozen vester, both aggregate handling and direct
vesterClaimremain subject to the same checks until the condition clears. For the external-receiver skip, the user can callvesterClaimdirectly or later use aggregate handling with the account as receiver. The practical effect is delayed collection, an extra transaction, and a risk that automation records a partially processed request as complete.Recommendation
Be aware of and document this behavior or consider emitting a per-vester skip outcome containing the vester and reason. Document that an external GMX receiver applies only to tracker-paid GMX and intentionally suppresses designated-vester claims.
-
I-05 Informational Designated vesters lack address validation Validation Resolved
Description
addDesignatedVesterrejects only duplicate addresses. It accepts the zero address, an EOA, or a contract that does not implement the expected vester interface.Reward handling and account transfers later call every designated entry. An invalid entry therefore makes those aggregate paths revert until the timelock removes it. This requires a trusted configuration mistake and is recoverable, so it is an operational configuration risk rather than an attacker-controlled denial of service.
Recommendation
Reject the zero address and addresses without deployed code. Verify the expected vester interface, token wiring, provisioning state, and controller permissions as part of the configuration process.
-
I-06 Informational V3 transfers leave legacy vester caps with sender Informational Acknowledged
Description
RewardRouterV3.acceptTransfer moves tracker stake and designated RatioVester state but does not move the sender's legacy Vester cap as V2 did. A sender with an unused legacy cap can therefore retain it after transferring the staked position, while the fresh receiver gets no legacy cap. The migration separately plans to zero legacy caps after enabling V3 transfers. Until an account's cap is zeroed, it can still use that cap if it independently has esGMX and pair collateral. The transfer itself sweeps the sender's existing esGMX and pending issuance, and the fork PoC supplies post-transfer esGMX through test-controlled privileged issuance. This is a transfer behavior and migration timing detail for the team to document; the PoC does not establish duplicate redemption or third-party loss.
Recommendation
Recommendation (Informational): Be aware of and document that a V3 stake transfer leaves legacy vester caps with the sender, while caps in the new designated vesters move to the receiver. A retained legacy cap remains usable until the planned zeroing step if the sender has esGMX and collateral.
-
I-07 Informational V3 staking events require indexer migration from legacy router topics Events Acknowledged
Description
RewardRouterV2 emits
StakeGmxandUnstakeGmxdirectly from the router. RewardRouterV3 instead callsIncentiveEventUtils.emitStakeGmxandemitUnstakeGmx, which emitEventLog1records throughEventEmitterunder the namesRewardRouterStakeGmxandRewardRouterUnstakeGmx. An indexer that switches to the V3 router address but continues filtering for the legacy event topics will not observe those V3 staking operations.This is an event-schema migration consideration. The linked PoC confirms the different event topics, but no currently deployed consumer that depends on the legacy topics at the V3 address was identified. On-chain staking balances and rewards are unaffected.
Recommendation
Document the V3 staking event schema in the migration guidance. Update affected indexers to read the
EventEmitterrecords and their account, token, and amount fields. Add legacy event compatibility only if a specific consumer requires it. -
I-08 Informational Legacy bnGMX-only fee deposits can retain reward weight after V3 unstake Informational Acknowledged
Description
Before cutover, an account can have bnGMX deposited directly in
feeGmxTracker. When_restakeBnGmxruns, it withdraws that entire direct deposit and calls_stakeBnGmxto place wallet bnGMX intoextendedGmxTrackerup to the boost cap. But_restakeForAccountreaches this conversion only when restaking mode is enabled and the account also has a nonzero oldbonusGmxTrackerdeposit infeeGmxTracker. A legacy bnGMX-only fee deposit therefore skips the conversion, even if the account is included inbatchRestakeForAccounts.The subsequent
_stakeBnGmxcall checks bnGMX already inextendedGmxTrackerand the account's wallet balance; neither includes bnGMX still held directly byfeeGmxTracker. V3's proportional burn on base unstake likewise checks only the extended-tracker bnGMX deposit. An unswept direct deposit can therefore remain after full base unstake and continue contributing to fee-tracker reward weight. GovToken voting power also reflects it only whenBaseAndBonusStakedAmountis selected.This is a migration edge case, not evidence of a material current reward loss. The linked PoC demonstrates the accounting with a constructed 3,000-unit legacy position; it does not establish a comparable live position. The migration readiness script permits a small direct fee-layer bnGMX custody residual by default.
Recommendation
Be aware that a legacy account with direct fee-layer bnGMX but no old bonus-tracker deposit can skip the restake conversion and retain fee reward weight after base unstake. Document this edge case in the cutover runbook and check direct fee-layer bnGMX residuals so operators can decide whether any account needs manual handling.
-
I-09 Informational Vester collateral can block legacy restaking Informational Acknowledged
Description
When inRestakingMode is enabled for an account with an unswept legacy bonusInFee deposit, _restakeForAccount temporarily recalls feeGmxTracker receipts from the legacy gmxVester only. A designated RatioVester can also hold that account's receipts as pair collateral while the tracker still records the full deposit. _restakeBonusGmxTracker may then try to burn more receipts than the account holds, so compound, unstake, and a batch containing the account can revert. Withdrawing the RatioVester collateral restores the receipts but ends the vesting session. This is a conditional migration concern because the launch plan requires legacy sweep populations cleared and V3 restaking mode off.
Recommendation
Be aware of and document this behavior: unswept legacy bonus deposits combined with designated RatioVester collateral can block restaking-related actions if V3 restaking mode is enabled. Confirm the migration readiness gate before enabling that mode, and document the collateral-withdrawal recovery tradeoff.
Remediation Review
6 findings · October 14 to 20, 2026-
L-01 Low Separate setters revive expired unstake requests Business logic errors Acknowledged
Description
signalSetUnstakeDelaychecks the proposed delay against the current expiry and schedules only the delay setter. To move a configured 90-day delay and 100-day expiry to 180 and 200 days through these wrappers, governance must execute the expiry increase first. Requests retain their original timestamp and are checked against the current settings, so an expired request can become executable before the longer delay takes effect.For example, Alice signals an unstake of 100 GMX on day 0. On day 151:
Settings Alice's request 90-day delay, 100-day expiry Expired since day 100 90-day delay, 200-day expiry, after the first setter Executable; Alice can withdraw 100 GMX 180-day delay, 200-day expiry, intended final settings Cannot execute until day 180 This requires a previously shortened expiry; V3's initial expiry is 100 years.
Recommendation
Be aware of and document this behavior: increasing expiry before delay can reopen expired requests between governance transactions. If the new delay must apply before withdrawals resume, execute both setters in one atomic timelock batch, with expiry first.
Resolution
GMX Team: Acknowledged. The expiry stays at its 100-year default and no change to it is planned, so the precondition does not arise. The behaviour is documented in our ops runbook, including that the wrappers schedule each setter separately and validate it against the live values, so the suggested atomic batch is not available through them.
-
L-02 Low Legacy pair locks block new vesting deposits Business logic errors Acknowledged
Description
RewardRouterV3.vesterDeposit runs syncFeeGmxTrackerBalance before every deposit into either new Vester. The sync reverts when the account's wallet sbfGMX plus its old and new Vester pairAmounts exceeds feeGmxTracker.stakedAmounts by more than the wallet holds. Equivalently, the locked pair ledger alone exceeds the fee tracker stake ledger. Historical VesterCap operations left old pairAmounts in place after releasing sbfGMX receipts, so an account can meet this condition without making another legacy deposit.
For example, an Arbitrum account has 93.7328 sbfGMX in its wallet, 156.7095 in the old Vester pair ledger, and 93.7328 in the fee tracker stake ledger. The 156.7095 excess exceeds its 93.7328 wallet balance, so any V3 vesting deposit reverts. The user must withdraw the old Vester position to clear its pair ledger, either early or after it finishes vesting. An early withdrawal returns unvested esGMX but ends its existing vesting session; redepositing that amount starts a new vesting period.
Recommendation
Be aware of and document this behavior: affected users need a clear old-Vester withdrawal path before they can deposit into the new vesters. Confirm that the old Vester can return its recorded pair receipts during the cutover, and explain the vesting-time effect of withdrawing early.
Resolution
GMX Team: Acknowledged, intended. The revert is the guard added for the unbacked sbfGMX, so pair receipts the legacy vester still records cannot back a new position. An affected account withdraws its legacy position first, or stakes enough GMX to cover it, which our integrator guide now states together with the cost of an early legacy withdrawal. On the cutover question, the legacy vester holds less than its recorded pair amounts by exactly the unbacked excess, which returns to it as affected accounts deposit through V3 or are synced, and the sync stays available until the gap is closed.
-
L-03 Low Router replacement can revive invalidated staking-account transfers Business logic errors Acknowledged
Description
Pending transfer receivers and captured vester versions persist in sender-keyed DataStore entries, but vesterConfigVersion is local to each router deployment. Vester-list changes invalidate pending signals only by incrementing the local counter; they do not remove those entries. A replacement can reproduce an earlier version integer and accept a signal already invalidated on its predecessor. The revised regression uses real vester addition, deactivation and drained removal to restore the predecessor's original vester set, checks matching final transfer policies, and demonstrates that the predecessor rejects the stale signal while the replacement accepts it.
Impact: Following vester lifecycle changes and a router replacement with a colliding counter, a previously designated receiver can transfer the sender's staking balances, wallet esGMX/bnGMX, pending unstake requests and vesting entitlements without a fresh signal. The regression asserts loss of the sender's assets and subsequent GMX withdrawal by the receiver. This requires a stale, unconsumed signal and the described migration; it does not permit arbitrary-account theft or additional voting-token inflation.
Recommendation
Be aware that a replacement RewardRouterV3 starts its own vesterConfigVersion at zero, while a pending transfer remains in the shared DataStore. Document this during a router migration. Before granting the replacement its transfer permissions, compare its version with any stored pendingTransferVesterVersion values, and have affected senders signal again or clear those entries. Adding and removing designated vesters on the predecessor does not by itself clear a signal.
Resolution
GMX Team: Acknowledged, deferred. The router deployed with this release is the first to store these entries, so nothing can be revived at launch. A replacement router will not accept transfer signals stored by its predecessor; this is tracked for the next router change and documented in our ops runbook meanwhile.
-
L-04 Low Residual balances pin a deactivated vester Business logic errors Acknowledged
Description
removeDesignatedVesteris the only removal path fromdesignatedVesters, and it accepts a vester only whenisDrainedForRemovalis true. After deactivation, that still requirestotalSupply == 0,pairSupply == 0, andtotalConverted == totalGmxClaimed. A bound issuer also needstotalIssuedAmount == totalClaimedAmount.No vester function clears another account's escrow, pair collateral, or unpaid GMX. Router withdraw and claim run only for
msg.sender.claimForAccountreverts while the account is frozen, andhandleRewardsskips that claim.withdrawTokencan transfer only GMX abovetotalSupply + totalConverted - totalGmxClaimed, so unpaid vested GMX stays reserved. A guardian can lift the freeze, after which the account itself can claim. Unclaimed issuer allocations can be reduced to zero withreduceIssuedAmount. Escrow, pair collateral, and unpaid vested GMX cannot.An account that never withdraws and claims, or a frozen account with settled unpaid GMX, leaves the deactivated vester on the list. One wei of settled unpaid GMX is enough:
totalConvertedstays abovetotalGmxClaimed, and removal reverts withDesignatedVesterNotDrained. Later vesters are appended around it. Account transfers, GMX claims, and vesting deposits keep calling into every listed vester.validateSendercallsvalidateTransfersOpenon each one, and that call reverts when the vester's transfer feature is disabled. Disabling transfers on a vester that cannot be removed rejects everysignalTransferandacceptTransfer.Recommendation
Be aware of and document this behavior: residual escrow or unpaid vested GMX keeps a deactivated vester on designatedVesters, and disabling that vester's transfer feature blocks every account transfer until the residual is cleared by the account.
Resolution
GMX Team: Acknowledged, intended. Removal requires a drained vester so that no account's escrow, pair or unpaid GMX becomes unreachable, since the router only serves designated vesters. A transfer pause on any designated vester pausing all account transfers is also intended, so vesting state always moves together. Both are documented in our ops runbook.
-
I-01 Informational Issuer vester binding is not checked Validation Acknowledged
Description
setVestercan be called once. It rejects the zero address and a second assignment, then stores_vesterwithout reading that contract.confirmIssuerBindingon a vester succeeds only when this issuer'svesterequals that vester. A mismatched assignment makes that check fail permanently, leavesisIssuerBindingConfirmedfalse, and makes every deposit revert withIncentiveIssuerBindingNotConfirmed. The issuer has to be redeployed, which drops itsissuedAmountsledger.The season vester is constructed with this issuer. The orphan vester is constructed with the zero address, so this binding does not apply to it. Users can still claim issued esGMX from the issuer. They cannot vest those tokens on the real season vester until the binding is confirmed.
Recommendation
Require
IRatioVester(_vester).issuer()to equal this issuer before storing the binding.Resolution
GMX Team: Acknowledged, deferred. For this release the binding is set and confirmed right after deployment, before anything is funded or issued, and our deployment notes require checking the vester's issuer before setVester. The check in setVester will be in place before the next season's issuer is deployed.
-
I-02 Informational Vester views and events disagree Unexpected Behavior Acknowledged
Description
transferVestingStateemitsgetVestingCapascap. An uncapped vester returnstype(uint256).maxthere, and the same function skips the cap move, so the event reports a max cap with zerousage. The vester deployment in this repo setsisUncappedto false.claimablestill counts settled but unpaid GMX for a frozen account (cumulativeClaimAmounts - claimedAmounts + unpaidClaimAmounts). Pending conversion is zero while the account is frozen, and_claimreverts withVesterAccountFrozen.setProvisioningCompletestoresprovisioningCompletewithout an event. Transfers stay closed until that flag is true.A frozen withdrawal returns the account's esGMX and pair collateral.
_settlereturns immediately while the account is frozen, and_withdrawthen setstrancheStartIndexto the tranche length. Vesting time since the last settle is not recorded as claimable GMX, and those tranches stay closed after an unfreeze. The comment that withheld conversion lands on unfreeze applies while the tranches remain open.Recommendation
Be aware of and document this behavior: a frozen
claimablebalance cannot be claimed, a frozen withdrawal returns esGMX and drops vesting time since the last settle, an uncapped transfer event reports a max cap that was not moved, and provisioning completion is not evented.Resolution
GMX Team: Acknowledged. No tokens are lost in any of the cases: both vesters are deployed capped, provisioningComplete is a public flag set once, and a withdrawal while frozen returns the unconverted esGMX and pair. The frozen-account behaviour is documented in our integrator guide.
No findings match.
More from GMX
All 49 reports-
Morpho Liquidation Module
3 findings 3 findings: 3 informational -
V2.2.1 Review
102 findings8 high 102 findings: 8 high, 37 medium, 49 low, 8 informational -
Incentives Contracts
17 findings 17 findings: 3 medium, 3 low, 11 informational -
Donation Contracts
25 findings 25 findings: 1 medium, 6 low, 18 informational
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.
