-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hacky native price workaround (#3278)
# Description Implementation of an option to set alternative token price (approximated) for any other native token. This feature is a workaround for obtaining native price for tokens which are not supported in our currently available sources, and it is safe to use such simple token substitution (like mapping csUSDL to DAI). # Changes - Added hash map of the tokens map in `CachingNativePriceEstimator`, used `DashMap` for optimal performance (this will be read only hash map) - Added code to parse token list from arguments line in `price_estimation::Arguments` - Added tests ## How to test Newly added tests. --------- Co-authored-by: MartinquaXD <[email protected]>
- Loading branch information
1 parent
ce951e3
commit 7333e77
Showing
4 changed files
with
258 additions
and
1 deletion.
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
Oops, something went wrong.