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

stellaswap v3 support #1470

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

stellaswap v3 support #1470

wants to merge 1 commit into from

Conversation

atticuzor
Copy link
Contributor

No description provided.

@llamatester
Copy link

The stellaswap-v3 adapter exports pools:

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

Nb of pools: 14
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬────────────┬─────────────────┬──────────────────┬────────────────────┬────────────────────┬────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ (index) │                     pool                     │   chain    │     project     │      symbol      │       tvlUsd       │      apyBase       │     apyReward      │                                          rewardTokens                                          │                                        underlyingTokens                                        │                                                              url                                                              │
├─────────┼──────────────────────────────────────────────┼────────────┼─────────────────┼──────────────────┼────────────────────┼────────────────────┼────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│    0    │ '0xb13b281503f6ec8a837ae1a21e86a9cae368fcc5' │ 'Moonbeam' │ 'stellaswap-v3' │  'WGLMR-xcDOT'   │  920641.030046484  │ 89.04413075435136  │ 9.045269224183295  │ [ '0xacc15dc74880c9944775448304b263d191c6077f', '0xffffffff1fcacbd218edc0eba20fc2308c778080' ] │ [ '0xacc15dc74880c9944775448304b263d191c6077f', '0xffffffff1fcacbd218edc0eba20fc2308c778080' ] │ 'https://app.stellaswap.com/pulsar/add/0xacc15dc74880c9944775448304b263d191c6077f/0xffffffff1fcacbd218edc0eba20fc2308c778080' │
│    1    │ '0x84fb1f90836f7962011576307476d474874c4d68' │ 'Moonbeam' │ 'stellaswap-v3' │ 'xcUSDC-xcUSDT'  │ 521569.75431149156 │ 1.320367823906584  │ 18.69098318246477  │ [ '0xffffffff7d2b0b761af01ca8e25242976ac0ad7d', '0xffffffffea09fb06d082fd1275cd48b191cbcd1d' ] │ [ '0xffffffff7d2b0b761af01ca8e25242976ac0ad7d', '0xffffffffea09fb06d082fd1275cd48b191cbcd1d' ] │ 'https://app.stellaswap.com/pulsar/add/0xffffffff7d2b0b761af01ca8e25242976ac0ad7d/0xffffffffea09fb06d082fd1275cd48b191cbcd1d' │
│    2    │ '0xac7f862a09b58f6c2df35ae38dbdbc593991d939' │ 'Moonbeam' │ 'stellaswap-v3' │ 'axlUSDC-xcUSDC' │ 390265.16022471804 │ 2.823226826962952  │ 17.42866447881341  │ [ '0xca01a1d0993565291051daff390892518acfad3a', '0xffffffff7d2b0b761af01ca8e25242976ac0ad7d' ] │ [ '0xca01a1d0993565291051daff390892518acfad3a', '0xffffffff7d2b0b761af01ca8e25242976ac0ad7d' ] │ 'https://app.stellaswap.com/pulsar/add/0xca01a1d0993565291051daff390892518acfad3a/0xffffffff7d2b0b761af01ca8e25242976ac0ad7d' │
│    3    │ '0x5daf7f80cc550ee6249a4635c3bb0678e94d3867' │ 'Moonbeam' │ 'stellaswap-v3' │  'xcDOT-xcUSDT'  │ 179691.63833103405 │ 186.19552217719365 │ 164.02036385426112 │ [ '0xffffffff1fcacbd218edc0eba20fc2308c778080', '0xffffffffea09fb06d082fd1275cd48b191cbcd1d' ] │ [ '0xffffffff1fcacbd218edc0eba20fc2308c778080', '0xffffffffea09fb06d082fd1275cd48b191cbcd1d' ] │ 'https://app.stellaswap.com/pulsar/add/0xffffffff1fcacbd218edc0eba20fc2308c778080/0xffffffffea09fb06d082fd1275cd48b191cbcd1d' │
│    4    │ '0xd9d1064e32704bdd540f90d3a9ecaf037748b966' │ 'Moonbeam' │ 'stellaswap-v3' │  'stDOT-xcDOT'   │  154702.314230594  │ 2.0228867542262723 │ 39.18910416322666  │ [ '0xbc7e02c4178a7df7d3e564323a5c359dc96c4db4', '0xffffffff1fcacbd218edc0eba20fc2308c778080' ] │ [ '0xbc7e02c4178a7df7d3e564323a5c359dc96c4db4', '0xffffffff1fcacbd218edc0eba20fc2308c778080' ] │ 'https://app.stellaswap.com/pulsar/add/0xbc7e02c4178a7df7d3e564323a5c359dc96c4db4/0xffffffff1fcacbd218edc0eba20fc2308c778080' │
│    5    │ '0x0aa60133b2604851f3c57067cfac2fcc3aa7fd7b' │ 'Moonbeam' │ 'stellaswap-v3' │  'WGLMR-xcUSDC'  │ 134552.49757320242 │ 173.25922569222874 │ 128.9451208067362  │ [ '0xacc15dc74880c9944775448304b263d191c6077f', '0xffffffff7d2b0b761af01ca8e25242976ac0ad7d' ] │ [ '0xacc15dc74880c9944775448304b263d191c6077f', '0xffffffff7d2b0b761af01ca8e25242976ac0ad7d' ] │ 'https://app.stellaswap.com/pulsar/add/0xacc15dc74880c9944775448304b263d191c6077f/0xffffffff7d2b0b761af01ca8e25242976ac0ad7d' │
│    6    │ '0xf50d2fc5c03b14a4e47e22a27bbbf6eaa62ef13f' │ 'Moonbeam' │ 'stellaswap-v3' │ 'WGLMR-xcMANTA'  │ 133368.06874071213 │ 26.091887646498314 │ 5.837693736142368  │ [ '0xacc15dc74880c9944775448304b263d191c6077f', '0xffffffff7d3875460d4509eb8d0362c611b4e841' ] │ [ '0xacc15dc74880c9944775448304b263d191c6077f', '0xffffffff7d3875460d4509eb8d0362c611b4e841' ] │ 'https://app.stellaswap.com/pulsar/add/0xacc15dc74880c9944775448304b263d191c6077f/0xffffffff7d3875460d4509eb8d0362c611b4e841' │
│    7    │ '0xab8c35164a8e3ef302d18da953923ea31f0fe393' │ 'Moonbeam' │ 'stellaswap-v3' │   'USDC-WGLMR'   │  122440.730838467  │ 487.01848584042386 │         0          │ [ '0x931715fee2d06333043d11f658c8ce934ac61d0c', '0xacc15dc74880c9944775448304b263d191c6077f' ] │ [ '0x931715fee2d06333043d11f658c8ce934ac61d0c', '0xacc15dc74880c9944775448304b263d191c6077f' ] │ 'https://app.stellaswap.com/pulsar/add/0x931715fee2d06333043d11f658c8ce934ac61d0c/0xacc15dc74880c9944775448304b263d191c6077f' │
│    8    │ '0x583af38702c2a53619558acbc758a77d0c0918e9' │ 'Moonbeam' │ 'stellaswap-v3' │   'RMRK-WGLMR'   │ 89701.71675700591  │         0          │         0          │                                               []                                               │ [ '0x524d524b4c9366be706d3a90dcf70076ca037ae3', '0xacc15dc74880c9944775448304b263d191c6077f' ] │ 'https://app.stellaswap.com/pulsar/add/0x524d524b4c9366be706d3a90dcf70076ca037ae3/0xacc15dc74880c9944775448304b263d191c6077f' │
│    9    │ '0x1b11d991f32fb59ec4ee744de68ad65d9e85b2d2' │ 'Moonbeam' │ 'stellaswap-v3' │  'STELLA-WGLMR'  │ 60774.78888234009  │ 119.61663464902328 │ 105.48303463938082 │ [ '0x0e358838ce72d5e61e0018a2ffac4bec5f4c88d2', '0xacc15dc74880c9944775448304b263d191c6077f' ] │ [ '0x0e358838ce72d5e61e0018a2ffac4bec5f4c88d2', '0xacc15dc74880c9944775448304b263d191c6077f' ] │ 'https://app.stellaswap.com/pulsar/add/0x0e358838ce72d5e61e0018a2ffac4bec5f4c88d2/0xacc15dc74880c9944775448304b263d191c6077f' │
└─────────┴──────────────────────────────────────────────┴────────────┴─────────────────┴──────────────────┴────────────────────┴────────────────────┴────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

@slasher125
Copy link
Collaborator

what range is being used for the CL pools? i suggest using "conservative" on our end

@atticuzor
Copy link
Contributor Author

Positions can be of any width, and position ticks come directly from thegraph.

@llamatester
Copy link

The stellaswap-v3 adapter exports pools:

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

Nb of pools: 14
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬────────────┬─────────────────┬──────────────────┬────────────────────┬────────────────────┬────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ (index) │                     pool                     │   chain    │     project     │      symbol      │       tvlUsd       │      apyBase       │     apyReward      │                                          rewardTokens                                          │                                        underlyingTokens                                        │                                                              url                                                              │
├─────────┼──────────────────────────────────────────────┼────────────┼─────────────────┼──────────────────┼────────────────────┼────────────────────┼────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│    0    │ '0xb13b281503f6ec8a837ae1a21e86a9cae368fcc5' │ 'Moonbeam' │ 'stellaswap-v3' │  'WGLMR-xcDOT'   │ 978650.3265494003  │ 126.67322334813417 │ 9.196984039545791  │ [ '0xacc15dc74880c9944775448304b263d191c6077f', '0xffffffff1fcacbd218edc0eba20fc2308c778080' ] │ [ '0xacc15dc74880c9944775448304b263d191c6077f', '0xffffffff1fcacbd218edc0eba20fc2308c778080' ] │ 'https://app.stellaswap.com/pulsar/add/0xacc15dc74880c9944775448304b263d191c6077f/0xffffffff1fcacbd218edc0eba20fc2308c778080' │
│    1    │ '0x84fb1f90836f7962011576307476d474874c4d68' │ 'Moonbeam' │ 'stellaswap-v3' │ 'xcUSDC-xcUSDT'  │ 533098.6116664461  │ 1.7642226671502133 │ 20.66332811039813  │ [ '0xffffffff7d2b0b761af01ca8e25242976ac0ad7d', '0xffffffffea09fb06d082fd1275cd48b191cbcd1d' ] │ [ '0xffffffff7d2b0b761af01ca8e25242976ac0ad7d', '0xffffffffea09fb06d082fd1275cd48b191cbcd1d' ] │ 'https://app.stellaswap.com/pulsar/add/0xffffffff7d2b0b761af01ca8e25242976ac0ad7d/0xffffffffea09fb06d082fd1275cd48b191cbcd1d' │
│    2    │ '0xac7f862a09b58f6c2df35ae38dbdbc593991d939' │ 'Moonbeam' │ 'stellaswap-v3' │ 'axlUSDC-xcUSDC' │ 388620.3812822855  │ 3.6044392011582804 │ 18.808467123006142 │ [ '0xca01a1d0993565291051daff390892518acfad3a', '0xffffffff7d2b0b761af01ca8e25242976ac0ad7d' ] │ [ '0xca01a1d0993565291051daff390892518acfad3a', '0xffffffff7d2b0b761af01ca8e25242976ac0ad7d' ] │ 'https://app.stellaswap.com/pulsar/add/0xca01a1d0993565291051daff390892518acfad3a/0xffffffff7d2b0b761af01ca8e25242976ac0ad7d' │
│    3    │ '0x5daf7f80cc550ee6249a4635c3bb0678e94d3867' │ 'Moonbeam' │ 'stellaswap-v3' │  'xcDOT-xcUSDT'  │ 192245.7208885247  │ 169.28295090511156 │ 160.9971850706197  │ [ '0xffffffff1fcacbd218edc0eba20fc2308c778080', '0xffffffffea09fb06d082fd1275cd48b191cbcd1d' ] │ [ '0xffffffff1fcacbd218edc0eba20fc2308c778080', '0xffffffffea09fb06d082fd1275cd48b191cbcd1d' ] │ 'https://app.stellaswap.com/pulsar/add/0xffffffff1fcacbd218edc0eba20fc2308c778080/0xffffffffea09fb06d082fd1275cd48b191cbcd1d' │
│    4    │ '0xd9d1064e32704bdd540f90d3a9ecaf037748b966' │ 'Moonbeam' │ 'stellaswap-v3' │  'stDOT-xcDOT'   │ 160029.43800393774 │ 1.4895959707609727 │ 39.75243398292859  │ [ '0xbc7e02c4178a7df7d3e564323a5c359dc96c4db4', '0xffffffff1fcacbd218edc0eba20fc2308c778080' ] │ [ '0xbc7e02c4178a7df7d3e564323a5c359dc96c4db4', '0xffffffff1fcacbd218edc0eba20fc2308c778080' ] │ 'https://app.stellaswap.com/pulsar/add/0xbc7e02c4178a7df7d3e564323a5c359dc96c4db4/0xffffffff1fcacbd218edc0eba20fc2308c778080' │
│    5    │ '0x0aa60133b2604851f3c57067cfac2fcc3aa7fd7b' │ 'Moonbeam' │ 'stellaswap-v3' │  'WGLMR-xcUSDC'  │ 155461.96086723084 │ 278.54762283433456 │ 128.18514366868564 │ [ '0xacc15dc74880c9944775448304b263d191c6077f', '0xffffffff7d2b0b761af01ca8e25242976ac0ad7d' ] │ [ '0xacc15dc74880c9944775448304b263d191c6077f', '0xffffffff7d2b0b761af01ca8e25242976ac0ad7d' ] │ 'https://app.stellaswap.com/pulsar/add/0xacc15dc74880c9944775448304b263d191c6077f/0xffffffff7d2b0b761af01ca8e25242976ac0ad7d' │
│    6    │ '0xf50d2fc5c03b14a4e47e22a27bbbf6eaa62ef13f' │ 'Moonbeam' │ 'stellaswap-v3' │ 'WGLMR-xcMANTA'  │ 139802.63009069167 │ 37.759378720485266 │ 5.968525229963712  │ [ '0xacc15dc74880c9944775448304b263d191c6077f', '0xffffffff7d3875460d4509eb8d0362c611b4e841' ] │ [ '0xacc15dc74880c9944775448304b263d191c6077f', '0xffffffff7d3875460d4509eb8d0362c611b4e841' ] │ 'https://app.stellaswap.com/pulsar/add/0xacc15dc74880c9944775448304b263d191c6077f/0xffffffff7d3875460d4509eb8d0362c611b4e841' │
│    7    │ '0xab8c35164a8e3ef302d18da953923ea31f0fe393' │ 'Moonbeam' │ 'stellaswap-v3' │   'USDC-WGLMR'   │ 127544.80457986183 │ 692.2791022436793  │         0          │ [ '0x931715fee2d06333043d11f658c8ce934ac61d0c', '0xacc15dc74880c9944775448304b263d191c6077f' ] │ [ '0x931715fee2d06333043d11f658c8ce934ac61d0c', '0xacc15dc74880c9944775448304b263d191c6077f' ] │ 'https://app.stellaswap.com/pulsar/add/0x931715fee2d06333043d11f658c8ce934ac61d0c/0xacc15dc74880c9944775448304b263d191c6077f' │
│    8    │ '0x583af38702c2a53619558acbc758a77d0c0918e9' │ 'Moonbeam' │ 'stellaswap-v3' │   'RMRK-WGLMR'   │ 89701.71675700591  │         0          │         0          │                                               []                                               │ [ '0x524d524b4c9366be706d3a90dcf70076ca037ae3', '0xacc15dc74880c9944775448304b263d191c6077f' ] │ 'https://app.stellaswap.com/pulsar/add/0x524d524b4c9366be706d3a90dcf70076ca037ae3/0xacc15dc74880c9944775448304b263d191c6077f' │
│    9    │ '0x1b11d991f32fb59ec4ee744de68ad65d9e85b2d2' │ 'Moonbeam' │ 'stellaswap-v3' │  'STELLA-WGLMR'  │  61946.4161929692  │ 88.09407410538289  │ 111.32140932931219 │ [ '0x0e358838ce72d5e61e0018a2ffac4bec5f4c88d2', '0xacc15dc74880c9944775448304b263d191c6077f' ] │ [ '0x0e358838ce72d5e61e0018a2ffac4bec5f4c88d2', '0xacc15dc74880c9944775448304b263d191c6077f' ] │ 'https://app.stellaswap.com/pulsar/add/0x0e358838ce72d5e61e0018a2ffac4bec5f4c88d2/0xacc15dc74880c9944775448304b263d191c6077f' │
└─────────┴──────────────────────────────────────────────┴────────────┴─────────────────┴──────────────────┴────────────────────┴────────────────────┴────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

@slasher125
Copy link
Collaborator

Screenshot 2024-08-20 at 17 49 00

the adapter has an apyBase value of 126.67322334813417 for WGLMR-DOT which, based on the screenshot is similar to the "expert range". on our end i do not want list tight ranges, simply cause they are unattainable for most users. i suggest we address this by using a much wider range like +/- 30%, which is also what we do for uni v3 and others

@atticuzor
Copy link
Contributor Author

That's the approximation and it be in between.
Screenshot 2024-09-14 at 12 58 01 AM

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