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

update Swing volume category #2241

Merged
merged 3 commits into from
Dec 20, 2024
Merged

update Swing volume category #2241

merged 3 commits into from
Dec 20, 2024

Conversation

dlpigpen
Copy link
Contributor

In this PR, we’ve recalculated the volume for the following specifics:

• DEX aggregator logic to include only same-chain swap volume.
• Bridge aggregator logic to include only cross-chain volume.

@llamabutler
Copy link

The swing adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts aggregators swing

🦙 Running SWING adapter 🦙
---------------------------------------------------
Start Date:	Thu, 19 Dec 2024 00:00:00 GMT
End Date:	Fri, 20 Dec 2024 00:00:00 GMT
---------------------------------------------------

SOLANA 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 1.24 k


ETHEREUM 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 64.56 k


BSC 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 11


AVAX 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


POLYGON 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 1000


ARBITRUM 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 78


ARCHWAY-1 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


BSQUARED 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


BASE 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 272


BITCOIN 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


BITLAYER 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


BLAST 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


BOB 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


CORE 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


COSMOS 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


FANTOM 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


XDAI 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


GRAVITY 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


INJECTIVE 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


LINEA 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


MANTA 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


MANTLE 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


METIS 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


MODE 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


MOONBEAM 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


MORPH 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


CELESTIA 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


OPTIMISM 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 779


OSMOSIS 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


SCROLL 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


TAIKO 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


WC 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 0


ZKSYNC 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily volume: 869

@llamabutler
Copy link

The swing adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts bridge-aggregators swing

🦙 Running SWING adapter 🦙
---------------------------------------------------
Start Date:	Thu, 19 Dec 2024 00:00:00 GMT
End Date:	Fri, 20 Dec 2024 00:00:00 GMT
---------------------------------------------------

SOLANA 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 1.27 k
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


ETHEREUM 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 15
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


BSC 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 6.43 k
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


AVAX 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 0
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


POLYGON 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 29.95 k
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


ARBITRUM 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 9.92 k
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


ARCHWAY-1 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 0
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


BSQUARED 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 0
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


BASE 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 4.36 k
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


BITCOIN 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 0
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


BITLAYER 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 0
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


BLAST 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 0
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


BOB 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 0
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


CORE 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 0
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


COSMOS 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 0
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


FANTOM 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 0
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


XDAI 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 0
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


GRAVITY 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 0
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


INJECTIVE 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 0
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


LINEA 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 38
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


MANTA 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 485
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


MANTLE 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 18
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


METIS 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 0
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


MODE 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 18
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


MOONBEAM 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 64
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


MORPH 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 0
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


CELESTIA 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 0
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


OPTIMISM 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 109
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


OSMOSIS 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 0
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


SCROLL 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 100
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


TAIKO 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 0
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


WC 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 50
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


ZKSYNC 👇
Backfill start time: 1/11/2022
NO METHODOLOGY SPECIFIED
Daily bridge volume: 37
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)

@llamabutler
Copy link

The swing adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees swing

🦙 Running SWING adapter 🦙
---------------------------------------------------
Start Date:	Thu, 19 Dec 2024 00:00:00 GMT
End Date:	Fri, 20 Dec 2024 00:00:00 GMT
---------------------------------------------------

SOLANA 👇
Backfill start time: 1/11/2023
Daily fees: 8
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


ETHEREUM 👇
Backfill start time: 1/11/2023
Daily fees: 556
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


BSC 👇
Backfill start time: 1/11/2023
Daily fees: 453
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


AVAX 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


POLYGON 👇
Backfill start time: 1/11/2023
Daily fees: 52
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


ARBITRUM 👇
Backfill start time: 1/11/2023
Daily fees: 48
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


ARCHWAY-1 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


BSQUARED 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


BASE 👇
Backfill start time: 1/11/2023
Daily fees: 61
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


BITCOIN 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


BITLAYER 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


BLAST 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


BOB 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


CORE 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


COSMOS 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


FANTOM 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


XDAI 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


GRAVITY 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


INJECTIVE 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


LINEA 👇
Backfill start time: 1/11/2023
Daily fees: 1
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


MANTA 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


MANTLE 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


METIS 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


MODE 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


MOONBEAM 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


MORPH 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


CELESTIA 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


OPTIMISM 👇
Backfill start time: 1/11/2023
Daily fees: 3
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


OSMOSIS 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


SCROLL 👇
Backfill start time: 1/11/2023
Daily fees: 1
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


TAIKO 👇
Backfill start time: 1/11/2023
Daily fees: 0
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


WC 👇
Backfill start time: 1/11/2023
Daily fees: 2
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)


ZKSYNC 👇
Backfill start time: 1/11/2023
Daily fees: 7
└─ Methodology: A 0.3% bridge fee is collected
End timestamp: 1734566400 (2024-12-19T00:00:00.000Z)

@dtmkeng dtmkeng merged commit dd79405 into DefiLlama:master Dec 20, 2024
2 checks 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