skyfffire hace 3 años
padre
commit
cde98c8f1f
Se han modificado 2 ficheros con 18 adiciones y 22 borrados
  1. 15 19
      config/base-token.json
  2. 3 3
      scripts/lp/lpMaintenance.ts

+ 15 - 19
config/base-token.json

@@ -1,30 +1,26 @@
 {
-  "0x7bf88d2c0e32de92cdaf2d43ccdc23e8edfd5990": {
-    "name": "WETHW",
+  "0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83": {
+    "name": "WFTM",
     "decimals": 18
   },
-  "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": {
-    "name": "WETH",
-    "decimals": 18
+  "0x04068DA6C83AFCFA0e13ba15A6696662335D5B75": {
+    "name": "USDC",
+    "decimals": 6
   },
-  "0x2ad7868ca212135c6119fd7ad1ce51cfc5702892": {
-    "name": "USDTW",
+  "0x049d68029688eAbF473097a2fC38ef61633A3C7A": {
+    "name": "fUSDT",
     "decimals": 6
   },
-  "0xc675fdbe260e1ee93106ee596b916952a9344f44": {
-    "name": "USDCW",
+  "0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E": {
+    "name": "DAI",
     "decimals": 18
   },
-  "0x25de68ef588cb0c2c8f3537861e828ae699cd0db": {
-    "name": "USDCPOW",
-    "decimals": 6
-  },
-  "0x11bbb41b3e8baf7f75773db7428d5acee25fec75": {
-    "name": "USDCUNIW",
-    "decimals": 6
+  "0x658b0c7613e890EE50B8C4BC6A3f41ef411208aD": {
+    "name": "fETH",
+    "decimals": 18
   },
-  "0x8a496486f4c7cb840555bc2be327cba1447027c3": {
-    "name": "USDTUNIW",
-    "decimals": 6
+  "0xe1146b9AC456fCbB60644c36Fd3F868A9072fc6E": {
+    "name": "fBTC",
+    "decimals": 18
   }
 }

+ 3 - 3
scripts/lp/lpMaintenance.ts

@@ -15,7 +15,7 @@ const v2ToolBy410 = new web3.eth.Contract(v2ToolBy410Abi, contracts.V2_TOOLS_BY_
 const baseTokenMap = require('../../config/base-token.json')
 const baseTokenAddressList = Object.keys(baseTokenMap)
 const ethTokenAddressList = baseTokenAddressList.filter(baseTokenAddress => {
-  return baseTokenMap[baseTokenAddress].name.indexOf('ETH') != -1
+  return baseTokenMap[baseTokenAddress].name.indexOf('FTM') != -1
 })
 
 export class LpMaintenance {
@@ -86,8 +86,8 @@ export class LpMaintenance {
   async checkLpType(lp: any) {
     // lp过滤后类型表
     const filterTypeList = [
-      { type: 'topLp', limit: 10 },
-      { type: 'normalLp', limit: 1 },
+      { type: 'topLp', limit: 100 },
+      { type: 'normalLp', limit: 10 },
       { type: 'lp', limit: 0 },
     ]
     // token折合成eth的价格,分三种情况探讨