Repository navigation
Move GMX GM/GLV adapters to the 2.2.1 Reader and GlvReader - #5627
Merged
Merged
Conversation
GMX's 2.2.1 release executes all orders on Arbitrum, Avalanche and MegaETH. The selectors and inputs are unchanged; the only difference in the structs we read is a trailing lentImpactPoolAmount on the poolValue info returned by getMarketTokenPrice, which we do not consume. The reader ABI moves to 2.2.1 so the extra field is accounted for. Botanix entries stay as they are: GMX has sunset it.
Data Feeds and Data Streams still run these two adapters while their workloads move to gmx-tokens, so they need the new Arbitrum Reader and GlvReader until that is finished. The gm-token reader ABI gains the trailing lentImpactPoolAmount field and its RPC fixture the extra word. The GlvReader entries we call are unchanged, so that ABI stays as it is.
🦋 Changeset detectedLatest commit: b36435a The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
mxiao-cll
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jira: OPDATA-9865
GMX 2.2.1 executes all orders on Arbitrum, Avalanche and MegaETH. The selectors and inputs are unchanged; the only difference in the structs we read is a trailing
lentImpactPoolAmounton theMarketPoolValueInforeturned bygetMarketTokenPrice, which we do not consume. The reader ABIs ingmx-tokensandgm-tokenare updated to 2.2.1 so the struct matches, and the defaults move to the 2.2.1 deployments.getGlvTokenPriceandgetGlvInfoare unchanged, so the GLV ABIs stay as they are. Botanix is sunset and stays as-is.Old -> new:
0x470fbC46bcC0f16532691Df360A07d8Bf5ee07890xAda708aFf0f1D784D28cd8Ff4d6D977fF9599e5D0x2C670A23f1E798184647288072e84054938B54970x51fe0b7919e1208a717E9B16a097C1C3D70eFbf60x62Cb8740E6986B29dC671B2EB596676f60590A5B0x9390285097B4a1997B91F61AF756DCD2509FcD0F0x5C6905A3002f989E1625910ba1793d40a031f9470x79B6Bf52D49d215724951c5a9A541f8A2Ee165Bc0x0f038EB4a38B08cd3c937a3256b51aa01904a6840x12c4E1A499f2fFcB55683F682549049e29d70Cba0x424527a588D56513cB2F5161958D83883EE8aB0f0xE08885EA7860f19e5fb2AECbA892e8A6BA505C86Reference: the new values are the
SyntheticsReader/GlvReaderentries for Arbitrum, Avalanche and MegaETH in GMX's contract config, and the 2.2.1 ABIs are in SyntheticsReaderV2_2_1.ts and GlvReaderV2_2_1.ts.Changes:
gmx-tokens: the six defaults, thegetMarketTokenPriceABI update, the integration-test env defaults and a patch changeset.gm-token/glv-token: the Arbitrum pair so the legacy deployments stay correct until Data Feeds and Data Streams move off them, the gm-token reader ABI update with its fixture, and patch changesets.How it was tested
Unit and integration:
yarn test packages/composites/gm-token packages/composites/glv-token packages/composites/gmx-tokens-> 9 suites, 39 tests pass.Locally, end to end against live chains: built the data-engine EA and the three composite EAs, ran them together, and replayed every GMX request configured in reference-data-directory.
Requests, one per adapter family:
Every one of the 14 production GMX requests has returned 200 with this code, including a gmx-tokens GM request and all seven gm-token Arbitrum markets after the ABI update, which confirms the 12-field 2.2.1 struct decodes against the live contracts. The final replay hit public RPC rate limits on two glv-token
pricecalls that had returned 200 in earlier runs; that ABI did not change. A logging JSON-RPC proxy confirmed the new addresses are what the adapters call:getMarketTokenPriceto0xada708...,0x939028...,0x12c4e1...andgetGlvInfo/getGlvTokenPriceto0x51fe...,0x79b6...,0xe088.... The two Botanix gm-token feeds were skipped (GMX sunset).Cutover dependencies outside this repo
data-feeds/gmx-tokens,data-feeds/glv-tokenanddata-streams/gmx-tokens-data-streamsset no reader env vars, so an image roll is enough for them.