소스 검색

fromHead的逻辑要不一样

龚成明 3 년 전
부모
커밋
90e3aa4126
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      scripts/ready/pushv2FromHead.ts

+ 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)