-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve speed of bulk token add script (#534)
Previously we were making requests to coingecko for each token to get the token address, which results in some necessary sleeps to avoid rate limiting. This PR fetches all tokens upfront so we only need to make 2 requests to coingecko per chain, which makes the script run much faster. + also make new tokens swappable by default.
- Loading branch information
1 parent
6ebaac8
commit 0086d95
Showing
2 changed files
with
59 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters