Sushi Pairs on Avalanche and BSC
Q108. Let's dive deep into Sushi pairs on Avalanche and BSC
Questions
This article is written to answer the following questions
-
Create a document that includes all addresses for all Swap pairs on Avalanche for sushi, plus the addresses of the two tokens belonging to each pair.
\
-
Create a document that includes all addresses for all Swap pairs on the BSC chain for sushi, plus the addresses of the two tokens belonging to each pair.
\
-
Create a document that includes all addresses for all Kashi pairs on Avalanche for sushi, plus the addresses of the two tokens belonging to each pair. Ideally, define which one is the main asset and which one is the collateral.
\
-
Create a document that includes all addresses for all Kashi pairs on the BSC chain for sushi, plus the addresses of the two tokens belonging to each pair. Ideally, define which one is the main asset and which one is the collateral.
Approach
Swap pairs
- We scrape Swap pairs information in JSON format from (BSC) and (Avalanche)
- We then organize the raw data into the table containing Swap pairs plus the two tokens belonging to each pair information by using Python (will be shown in coding section)
Kashi pairs
- We obtain Kashi pairs information from html files of Lending webpage
- By using web scraping, now, we can obtain only pairs information; pair names, and pair addresses
- We obtain the information of token of each pair from Swap pairs information that we obtained earlier.
- We then organize the raw data into the table containing Kashi pairs plus the two tokens belonging to each pair information by using Python (will be shown in coding section)
Coding section & results
We obtain the results from Python coding in Google Collab editor
The results contains existing token pair names, token pair addresses, two tokens belonging to each pair (including names, addresses, decimals)
Swap pairs in Avalanche
Swap pairs in BSC
Kashi pairs in Avalanche
Kashi pairs in BSC