Skip to content
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

GMX v2 #1023

Merged
merged 2 commits into from
Oct 9, 2023
Merged

GMX v2 #1023

merged 2 commits into from
Oct 9, 2023

Conversation

0xngmi
Copy link
Member

@0xngmi 0xngmi commented Oct 3, 2023

don't think i'll complete the code for now but leaving here what i have so far

@vrtnd vrtnd changed the title [WIP] GMX v2 GMX v2 Oct 9, 2023
@llamatester
Copy link

The gmx-v2 adapter exports pools:

Test Suites: 1 passed, 1 total
Tests: 142 passed, 142 total
Snapshots: 0 total
Time: 0.375 s
Ran all test suites.

Nb of pools: 23
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬─────────────┬──────────┬───────────────┬────────────────────┬────────────────────┬───────────┬────────────────────────────────────────────────────────────────────────────────────────────────┐
│ (index) │                     pool                     │    chain    │ project  │    symbol     │       tvlUsd       │      apyBase       │ apyReward │                                        underlyingTokens                                        │
├─────────┼──────────────────────────────────────────────┼─────────────┼──────────┼───────────────┼────────────────────┼────────────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────┤
│    0    │ '0x70d95587d40a2caf56bd97485ab3eec10bee6336' │ 'Arbitrum'  │ 'gmx-v2' │  'ETH-USDC'   │ 16867166.13678907  │ 7.133712875107034  │     0     │ [ '0x82af49447d8a07e3bd95bd0d56f35241523fbab1', '0xaf88d065e77c8cc2239327c5edb3a432268e5831' ] │
│    1    │ '0x47c031236e19d024b42f8ae6780e44a573170703' │ 'Arbitrum'  │ 'gmx-v2' │ 'WBTC.b-USDC' │ 15676363.517060155 │ 12.402419265733784 │     0     │ [ '0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f', '0xaf88d065e77c8cc2239327c5edb3a432268e5831' ] │
│    2    │ '0xc25cef6061cf5de5eb761b50e4743c1f5d7e5407' │ 'Arbitrum'  │ 'gmx-v2' │  'ARB-USDC'   │ 2252138.2636496057 │ 12.442326808044806 │     0     │ [ '0x912ce59144191c1204e64559fe8253a0e49e6548', '0xaf88d065e77c8cc2239327c5edb3a432268e5831' ] │
│    3    │ '0x7f1fa204bb700853d36994da19f830b6ad18455c' │ 'Arbitrum'  │ 'gmx-v2' │  'LINK-USDC'  │ 1554849.3661933758 │ 15.856020388870553 │     0     │ [ '0xf97f4df75117a78c1a5a0dbb814af92458539fb4', '0xaf88d065e77c8cc2239327c5edb3a432268e5831' ] │
│    4    │ '0x913c1f46b48b3ed35e7dc3cf754d4ae8499f31cf' │ 'Avalanche' │ 'gmx-v2' │  'AVAX-USDC'  │ 1143752.5853774971 │ 12.179336292676261 │     0     │ [ '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7', '0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e' ] │
│    5    │ '0xfb02132333a79c8b5bd0b64e3abcca5f7faf2937' │ 'Avalanche' │ 'gmx-v2' │  'BTC-USDC'   │ 837127.3668937633  │ 13.902247497070132 │     0     │ [ '0x152b9d0fdc40c096757f570a51e494bd4b943e50', '0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e' ] │
│    6    │ '0x09400d9db990d5ed3f35d7be61dfaeb900af03c9' │ 'Arbitrum'  │ 'gmx-v2' │  'SOL-USDC'   │ 434335.31576451514 │ 13.685118057797883 │     0     │ [ '0x2bcc6d6cdbbdc0a4071e48bb3b969b06b3330c07', '0xaf88d065e77c8cc2239327c5edb3a432268e5831' ] │
│    7    │ '0xc7abb2c5f3bf3ceb389df0eecd6120d451170b50' │ 'Arbitrum'  │ 'gmx-v2' │  'UNI-USDC'   │ 378491.57639091904 │  9.34065198303903  │     0     │ [ '0xfa7f8980b0f1e64a2062791cc3b0871572f1f7f0', '0xaf88d065e77c8cc2239327c5edb3a432268e5831' ] │
│    8    │ '0x9c2433dfd71096c435be9465220bb2b189375ea7' │ 'Arbitrum'  │ 'gmx-v2' │ 'USDC-USDC.e' │ 250828.27870306958 │ 0.6616376474207425 │     0     │ [ '0xaf88d065e77c8cc2239327c5edb3a432268e5831', '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8' ] │
│    9    │ '0xb7e69749e3d2edd90ea59a4932efea2d41e245d7' │ 'Avalanche' │ 'gmx-v2' │  'ETH-USDC'   │ 220613.44753302526 │ 3.9124098752509155 │     0     │ [ '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab', '0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e' ] │
└─────────┴──────────────────────────────────────────────┴─────────────┴──────────┴───────────────┴────────────────────┴────────────────────┴───────────┴────────────────────────────────────────────────────────────────────────────────────────────────┘

@vrtnd vrtnd merged commit 3dbe5ec into master Oct 9, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants