Skip to content

Commit

Permalink
fix warn
Browse files Browse the repository at this point in the history
  • Loading branch information
cherry-yl-sh committed Jul 9, 2024
1 parent 32c987b commit 072387e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/price_compoent/price_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ type Price struct {
func init() {
URLMap = make(map[global_const.TokenType]string)
template := "https://api.coingecko.com/api/v3/simple/price?ids=%s&vs_currencies=usd"
for token, tokenSymple := range TokenSymbolMap {
URLMap[token] = fmt.Sprintf(template, tokenSymple)
for token, tokenSymbol := range TokenSymbolMap {
URLMap[token] = fmt.Sprintf(template, tokenSymbol)
}

}
Expand Down

0 comments on commit 072387e

Please sign in to comment.