-
Notifications
You must be signed in to change notification settings - Fork 415
Cross chain single sided pools #2118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release
Are you sure you want to change the base?
Conversation
…ments; update platformTokens.json with new token entries for BTC and WETH
Deploying gmx-interface with
|
| Latest commit: |
53b4df8
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://fe30d590.gmx-interface.pages.dev |
| Branch Preview URL: | https://fedev-3200-single-side-pools.gmx-interface.pages.dev |
Deploying gmx-interface-home with
|
| Latest commit: |
53b4df8
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://76cb1a24.gmx-interface-home.pages.dev |
| Branch Preview URL: | https://fedev-3200-single-side-pools.gmx-interface-home.pages.dev |
|
@cursor review |
|
Please finish setting up background agents. Go to Cursor |
|
@cursor review |
| fs.writeFileSync(outputPath, JSON.stringify(platformTokens, null, 2) + "\n", "utf8"); | ||
|
|
||
| console.log(`\n✓ Generated platform tokens JSON at: ${outputPath}`); | ||
| console.log(`✓ Found ${Object.keys(platformTokens).length} token symbols`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary statistics count wrong object keys
The summary statistics report incorrect values. Object.keys(platformTokens).length always returns 2 (the keys mainnets and testnets), not the number of token symbols. Additionally, line 274 counts token symbols rather than chain entries despite the log message claiming "Total chain entries". The correct count for token symbols would sum keys from both platformTokens.mainnets and platformTokens.testnets, and chain entries would require iterating one level deeper.
Note
Introduces automated token config generation and broadens analytics schema.
scripts/generate-platform-tokens.tsto scan LayerZero deployments and outputsrc/config/static/platformTokens.json(groups by mainnet/testnet, normalizes addresses, derives symbols)sdk/src/types/subsquid.ts:PositionChange(orderKey,positionKey,sizeInTokens) with corresponding filters/sortsPositionVolumeInfo,SwapFeesInfo,SwapVolumeInfo,VolumeInfowith query args, orderBy, and where inputssrc/config/static/platformTokens.jsonwith additional GM/GLV entries across chainsWritten by Cursor Bugbot for commit 53b4df8. This will update automatically on new commits. Configure here.