Эх сурвалжийг харах

fromHead的逻辑要不一样

龚成明 3 жил өмнө
parent
commit
90e3aa4126

+ 1 - 5
scripts/ready/pushv2FromHead.ts

@@ -95,12 +95,8 @@ async function getAllLp(v2Router: any, fromZero: boolean, v2_410_tool: any, v2_f
 async function saveLpToSwapPath(lpList: any) {
   for (let lpIndex in lpList) {
     const lp = lpList[lpIndex]
-    const lpSum2Query = await swapPath.findBySumValueAndLevel(lp.sum2, '2')
-    let lpSum2List = []
 
-    if (lpSum2Query.state) {
-      lpSum2List = JSON.parse(lpSum2Query.data.data)
-    }
+    let lpSum2List = []
 
     lpSum2List.push(lp)