Skip to content

Commit

Permalink
Merge branch 'main' into op-token
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason4276 authored Dec 20, 2024
2 parents 5ac9413 + 5236549 commit 3bcaf18
Show file tree
Hide file tree
Showing 8 changed files with 949 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ config
(

schema = 'kyberswap_aggregator_avalanche_c',
alias = 'trades',
partition_by = ['block_month'],
Expand Down Expand Up @@ -36,8 +36,11 @@ WITH meta_router AS
,ARRAY[-1] AS trace_address
FROM
{{ source('kyber_avalanche_c', 'MetaAggregationRouterV2_evt_Swapped') }}
WHERE 0x250f8f7750735e3ab5dc9db3a542f6b71999ed38 not in (dstToken, srcToken)
-- There are 2 weird transactions with this token where the return and spent amounts in the event are not correct
-- these result in inflated volume, so we'll ignore this token in any trades.
{% if is_incremental() %}
WHERE evt_block_time >= date_trunc('day', now() - INTERVAL '7' DAY)
AND evt_block_time >= date_trunc('day', now() - INTERVAL '7' DAY)
{% endif %}
)
SELECT
Expand Down
12 changes: 11 additions & 1 deletion dbt_subprojects/tokens/models/prices/base/prices_base_tokens.sql
Original file line number Diff line number Diff line change
Expand Up @@ -193,5 +193,15 @@ FROM
('alb-alienbase', 'base', 'ALB',0x1dd2d631c92b1acdfcdd51a0f7145a50130050c4, 18),
('clark-coinbase-mascot','base','CLARK',0x5f7373Fa845692b1dD7bfaE576D6c743482bf26a, 18),
('gyd-gyro-dollar','base','GYD',0xca5d8f8a8d49439357d3cf46ca2e720702f132b8, 18),
('virtual-virtual-protocol', 'base', 'VIRTUAL', 0x0b3e328455c4059EEb9e3f84b5543F74E24e7E1b, 18)
('virtual-virtual-protocol', 'base', 'VIRTUAL', 0x0b3e328455c4059EEb9e3f84b5543F74E24e7E1b, 18),
('bomb-fbomb', 'base', 'BOMB', 0x74ccbe53f77b08632ce0cb91d3a545bf6b8e0979, 18),
('play9-play', 'base', 'PLAY', 0x7404ac09adf614603d9c16a7ce85a1101f3514ba, 18),
('champ-super-champs', 'base', 'CHAMP', 0xeb6d78148f001f3aa2f588997c5e102e489ad341, 18),
('euroc-euro-coin', 'base', 'EURC', 0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42, 6),
('fai-freysa', 'base', 'FAI', 0xb33ff54b9f7242ef1593d2c9bcd8f9df46c77935, 18),
('ogn-origin-protocol', 'base', 'OGN', 0x7002458b1df59eccb57387bc79ffc7c29e22e6f7, 18),
('usdt-tether', 'base', 'USDT', 0xfde4c96c8593536e31f229ea8f37b2ada2699bb2, 6),
('klima-klimadao', 'base', 'KLIMA', 0xdcefd8c8fcc492630b943abcab3429f12ea9fea2, 9),
('yfi-yearnfinance', 'base', 'YFI', 0x9eaf8c1e34f05a589eda6bafdf391cf6ad3cb239, 18)
--('well-moonwell' ,'base', 'WELL', 0xa88594d404727625a9437c3f886c7643872296ae, 18)
) as temp (token_id, blockchain, symbol, contract_address, decimals)
Original file line number Diff line number Diff line change
Expand Up @@ -1870,7 +1870,8 @@ FROM
('sigma2-sigma', 'ethereum', 'SIGMA', 0x18a8D75F70eAEad79B5A55903D036ce337F623A5, 18),
('mstr-mstr2100', 'ethereum', 'MSTR', 0x42069026EAC8Eee0Fd9b5f7aDFa4f6E6D69a2B39, 9),
('usdl-lift-dollar', 'ethereum', 'USDL', 0xbdC7c08592Ee4aa51D06C27Ee23D5087D65aDbcD, 18),
('usr-resolv-usr', 'ethereum', 'USR', 0x66a1e37c9b0eaddca17d3662d6c05f4decf3e110, 18)
('usr-resolv-usr', 'ethereum', 'USR', 0x66a1e37c9b0eaddca17d3662d6c05f4decf3e110, 18),
('sovrn-sovrun','ethereum', 'SOVRN', 0x031B8d752d73d7Fe9678ACEf26e818280D0646b4, 18)
) as temp (token_id, blockchain, symbol, contract_address, decimals)
where contract_address not in (
-- bad price feeds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,6 @@ FROM
('ton-toncoin', null, 'TON', null,null),
('strk-starknet', null, 'STRK', null,null),
('kda-kadena', null, 'KDA', null, null),
('ron-ronin-token', null, 'RON', null, null)
('ron-ronin-token', null, 'RON', null, null),
('hype-hyperliquid', null, 'HYPE', null, null)
) as temp (token_id, blockchain, symbol, contract_address, decimals)
Original file line number Diff line number Diff line change
Expand Up @@ -710,5 +710,10 @@ FROM
('goat-goatseus-maximus', 'solana', 'GOAT', 'CzLSujWBLFsSjncfkh59rUFqvafWcY5tzedWJSuypump', 6),
('fwog-fwog', 'solana', 'FWOG', 'A8C3xuqscfmyLrte3VmTqrAq8kgMASius9AFNANwpump', 6),
('lester-litecoin-mascot', 'solana', 'LESTER', '5z3iCe53hUANTiG8Js8RjHNE2Arjik7L2CXLyr2rpump', 6),
('happy-happycat', 'solana', 'HAPPY', 'HAPPYwgFcjEJDzRtfWE6tiHE9zGdzpNky2FvjPHsvvGZ', 9)
('happy-happycat', 'solana', 'HAPPY', 'HAPPYwgFcjEJDzRtfWE6tiHE9zGdzpNky2FvjPHsvvGZ', 9),
('memesai-memes-ai', 'solana', 'MEMESAI', '39qibQxVzemuZTEvjSB7NePhw9WyyHdQCqP8xmBMpump', 6),
('grift1-orbit', 'solana', 'GRIFT', 'GekTNfm84QfyP2GdAHZ5AgACBRd69aNmgA5FDhZupump', 6),
('fxn-fxn', 'solana', 'FXN', '92cRC6kV5D7TiHX1j56AbkPbffo9jwcXxSDQZ8Mopump',6),
('griffain-test-griffaincom', 'solana', 'GRIFFAIN', 'KENJSUYLASHUMfHyy5o4Hp2FdNqZg1AsUPhfH2kYvEP', 6),
('tank-agenttank', 'solana', 'TANK', 'GAMwtMB6onAvBNBQJCJFuxoaqfPH8uCQ2dewNMVVpump', 6)
) as temp (token_id, blockchain, symbol, contract_address, decimals)
Original file line number Diff line number Diff line change
Expand Up @@ -409,5 +409,6 @@ FROM (VALUES
, (0x5f7373Fa845692b1dD7bfaE576D6c743482bf26a, 'CLARK', 18)
, (0xBAa5CC21fd487B8Fcc2F632f3F4E8D37262a0842, 'MORPHO', 18)
, (0xCA5d8F8a8d49439357d3CF46Ca2e720702F132b8, 'GYD', 18)
, (0xC0D3700000987C99b3C9009069E4f8413fD22330, 'cdxUSD', 18)
, (0xC0D3700000987C99b3C9009069E4f8413fD22330, 'cdxUSD', 18)
, (0xc694a91e6b071bf030a18bd3053a7fe09b6dae69, 'COW', 18)
) AS temp_table (contract_address, symbol, decimals)
Original file line number Diff line number Diff line change
Expand Up @@ -4740,4 +4740,5 @@ FROM (VALUES
, ( 0xa4f6b2cdcb67bf8f48baa459a333d2667aa4b100, 'shezETH', 8)
, ( 0x7F4B66FF703336CfC35b901144614496Ae0b0D27, 'shezUSD', 18)
, ( 0xa7b66dda0d7c7c1e43d3130491216172993d163d, 'EVS', 6)
, ( 0x2371e134e3455e0593363cbf89d3b6cf53740618, 'gtWETH', 18)
) AS temp_table (contract_address, symbol, decimals)
Loading

0 comments on commit 3bcaf18

Please sign in to comment.