-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
DUX-762 Init sonic chain #7341
DUX-762 Init sonic chain #7341
Conversation
Currently 4 trusted tokens to be added: |
#7370 includes sonic tokens' spells. |
Hey @Hosuke, Silver |
Sorry, I do not have the token-ids for these 2 tokens. If you know their token-ids, I may add them into You may search for their token-ids in this list: https://api.coinpaprika.com/v1/coins/ |
If there a way to get the price of Wrapped Sonic (WS)? It is the most traded token on Sonic hence much needed for any dashboard |
Currently we are missing |
Okayy! Any idea till when can we expect this data in dex.prices? |
After this PR and #7399 merged. |
dbt_subprojects/tokens/models/prices/sonic/prices_sonic_tokens.sql
Outdated
Show resolved
Hide resolved
@@ -12,8 +12,8 @@ SELECT | |||
, symbol | |||
, decimals | |||
FROM (VALUES | |||
(0x309C92261178fA0CF748A855e90Ae73FDb79EBc7, 'WETH', 18) | |||
, (0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38, 'WS', 18) | |||
(0x50c42dEAcD8Fc9773493ED674b675bE577f2634b, 'WETH', 18) |
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.
fyi @Hosuke @IrishLatte19
looks like this is the verified WETH
contract address on sonic
https://sonicscan.org/token/0x50c42dEAcD8Fc9773493ED674b675bE577f2634b
(0x309C92261178fA0CF748A855e90Ae73FDb79EBc7, 'WETH', 18) | ||
, (0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38, 'WS', 18) | ||
(0x50c42dEAcD8Fc9773493ED674b675bE577f2634b, 'WETH', 18) | ||
, (0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38, 'wS', 18) |
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.
minor update to symbol casing to match block explorer
FROM | ||
( | ||
VALUES | ||
('ftm-fantom', 'wS', 0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38, 18) -- looks like FTM <--> S token are same price and 1:1 upgrade according to docs |
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.
using FTM for now, since it appears the prices match + there is 1:1 upgrade via their docs. would be nice to update if/when coinpaprika has sonic available
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.
this is by far most transferred token though, i think it's important we include
data_tests: | ||
- unique |
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.
adding unique test. something we should likely have on all prices spells.
, ('sonic', 0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38) | ||
, ('sonic', 0x29219dd400f2Bf60E5a23d13Be72B486D4038894) | ||
, ('sonic', 0x50c42dEAcD8Fc9773493ED674b675bE577f2634b) | ||
, ('sonic', 0xe715cba7b5ccb33790cebff1436809d36cb17e57) |
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.
select
contract_address,
count(1)
from
erc20_sonic.evt_transfer
group by
contract_address
order by
2 desc
limit
10
to establish initial trusted tokens, should compliment when we add DEXs to find gaps in amounts calculated
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.
i believe we should be all set now 🙏
Thanksss!! @jeff-dude |
Init sonic chain