Skip to content

Commit 9aeee39

Browse files
committed
Merge branch 'pol' into dev
2 parents 2acb474 + 4652991 commit 9aeee39

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

dao/dao.go

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ func Initialize(db *gorm.DB) (*DbDao, error) {
109109
}
110110
}
111111

112+
if err := db.Where("token_id='polygon_matic'").
113+
Delete(&TableTokenPriceInfo{}).Error; err != nil {
114+
log.Error("del polygon_matic err: %s", err.Error())
115+
}
116+
112117
return &DbDao{db: db}, nil
113118
}
114119

@@ -178,19 +183,19 @@ var tokenList = []TableTokenPriceInfo{
178183
DisplayName: "Binance",
179184
Icon: "binance-smart-chain",
180185
},
181-
{
182-
TokenId: "polygon_matic",
183-
ChainType: 1,
184-
CoinType: common.CoinTypeMatic,
185-
GeckoId: "matic-network",
186-
Name: "Polygon",
187-
Symbol: "MATIC",
188-
Decimals: 18,
189-
Logo: "https://app.did.id/images/components/polygon.svg",
190-
LastUpdatedAt: time.Now().Unix(),
191-
DisplayName: "Polygon",
192-
Icon: "polygon",
193-
},
186+
//{
187+
// TokenId: "polygon_matic",
188+
// ChainType: 1,
189+
// CoinType: common.CoinTypeMatic,
190+
// GeckoId: "matic-network",
191+
// Name: "Polygon",
192+
// Symbol: "MATIC",
193+
// Decimals: 18,
194+
// Logo: "https://app.did.id/images/components/polygon.svg",
195+
// LastUpdatedAt: time.Now().Unix(),
196+
// DisplayName: "Polygon",
197+
// Icon: "polygon",
198+
//},
194199
{
195200
TokenId: "doge_doge",
196201
ChainType: 7,

0 commit comments

Comments
 (0)