@@ -109,6 +109,11 @@ func Initialize(db *gorm.DB) (*DbDao, error) {
109
109
}
110
110
}
111
111
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
+
112
117
return & DbDao {db : db }, nil
113
118
}
114
119
@@ -178,19 +183,19 @@ var tokenList = []TableTokenPriceInfo{
178
183
DisplayName : "Binance" ,
179
184
Icon : "binance-smart-chain" ,
180
185
},
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
+ // },
194
199
{
195
200
TokenId : "doge_doge" ,
196
201
ChainType : 7 ,
0 commit comments