龚成明 3 سال پیش
والد
کامیت
c5298b5476
2فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 2 2
      scripts/ready/pushv2.ts
  2. 3 3
      scripts/ready/pushv2FromHead.ts

+ 2 - 2
scripts/ready/pushv2.ts

@@ -163,9 +163,9 @@ async function filterLp(lpList: any) {
     const lp = lpList[lpIndex]
 
     if (lp.token0.toLowerCase() === '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2') {
-      if (parseInt(lp.r0) > 20 * 1e18) filteredLpList.push(filteredLpList)
+      if (parseInt(lp.r0) > 20 * 1e18) filteredLpList.push(lp)
     } else if (lp.token1.toLowerCase() === '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2') {
-      if (parseInt(lp.r1) > 20 * 1e18) filteredLpList.push(filteredLpList)
+      if (parseInt(lp.r1) > 20 * 1e18) filteredLpList.push(lp)
     } else {
       filteredLpList.push(lp)
     }

+ 3 - 3
scripts/ready/pushv2FromHead.ts

@@ -157,15 +157,15 @@ async function saveToken(lpList: any) {
 }
 
 async function filterLp(lpList: any) {
-  const filteredLpList: any = []
+  const filteredLpList = []
 
   for (let lpIndex in lpList) {
     const lp = lpList[lpIndex]
 
     if (lp.token0.toLowerCase() === '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2') {
-      if (parseInt(lp.r0) > 20 * 1e18) filteredLpList.push(filteredLpList)
+      if (parseInt(lp.r0) > 20 * 1e18) filteredLpList.push(lp)
     } else if (lp.token1.toLowerCase() === '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2') {
-      if (parseInt(lp.r1) > 20 * 1e18) filteredLpList.push(filteredLpList)
+      if (parseInt(lp.r1) > 20 * 1e18) filteredLpList.push(lp)
     } else {
       filteredLpList.push(lp)
     }