-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve display of factory tokens (such as wstETH) (#528)
* fix: display different chain pretty names if they are different - it is possible for a factory token to have the same chain_name as the native chain, but a different pretty name that describes what chain it represents (eg. wstETH is "Lido" on Neutron) * fix: remove concurrent pagination usage of SWR: - it didn't work as expected: the null keys past the end of the denom array would cause future keys to be missed if within the same page range. eg. 2 items (page 3 key = null) -> 3 items, the result will be the cached keys from 2 item array, page 3 key will not be computed - instead increase the page size 1 at a time so it will compute each new key as it should * perf: prevent unnecessary recomputation of client * refactor: make SWR paginated request handling consistently: - it is important to pass non-null keys and iterate keys in sequence - many uncomputed keys occur if setting the page size directly or if the resolved key returns null
- Loading branch information
Showing
3 changed files
with
13 additions
and
20 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
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