Skip to content

Commit 2acb474

Browse files
committed
Merge branch 'pol' into dev
# Conflicts: # go.mod # go.sum
2 parents cc29996 + 63b792e commit 2acb474

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

dao/dao.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,19 @@ var tokenList = []TableTokenPriceInfo{
285285
DisplayName: "CKB",
286286
Icon: "ckbccc",
287287
},
288+
{
289+
TokenId: "polygon_pol",
290+
ChainType: 1,
291+
CoinType: common.CoinTypeMatic,
292+
GeckoId: "polygon_pol",
293+
Name: "Polygon",
294+
Symbol: "POL",
295+
Decimals: 18,
296+
Logo: "https://app.did.id/images/components/polygon.svg",
297+
LastUpdatedAt: time.Now().Unix(),
298+
DisplayName: "Polygon",
299+
Icon: "polygon",
300+
},
288301
}
289302

290303
func (d *DbDao) Transaction(fn func(tx *gorm.DB) error) error {

timer/timer_gecko.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type GeckoTokenInfo struct {
3333
// https://binance-docs.github.io/apidocs/spot/cn/#8ff46b58de
3434
func GetTokenPriceNew(ids []string) ([]GeckoTokenInfo, error) {
3535
var symbols []string
36-
symbols = append(symbols, "BTCUSDT", "CKBUSDT", "ETHUSDT", "TRXUSDT", "BNBUSDT", "MATICUSDT", "DOGEUSDT")
36+
symbols = append(symbols, "BTCUSDT", "CKBUSDT", "ETHUSDT", "TRXUSDT", "BNBUSDT", "DOGEUSDT", "POLUSDT")
3737

3838
symbolStr := ""
3939
for _, v := range symbols {
@@ -72,6 +72,7 @@ var TokenIdMap = map[string][]string{
7272
"TRXUSDT": {"tron_trx"},
7373
"MATICUSDT": {"polygon_matic"},
7474
"DOGEUSDT": {"doge_doge"},
75+
"POLUSDT": {"polygon_pol"},
7576
}
7677

7778
func TokenPriceNewToList(res []TokenPriceNew) []GeckoTokenInfo {

0 commit comments

Comments
 (0)