From 072387e6d9247b8fd1827899f950285a509def39 Mon Sep 17 00:00:00 2001 From: dylanyang Date: Tue, 9 Jul 2024 19:57:00 +0800 Subject: [PATCH] fix warn --- common/price_compoent/price_util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/price_compoent/price_util.go b/common/price_compoent/price_util.go index d2b6171..491255b 100644 --- a/common/price_compoent/price_util.go +++ b/common/price_compoent/price_util.go @@ -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) } }