|
@@ -95,12 +95,8 @@ async function getAllLp(v2Router: any, fromZero: boolean, v2_410_tool: any, v2_f
|
|
|
async function saveLpToSwapPath(lpList: any) {
|
|
async function saveLpToSwapPath(lpList: any) {
|
|
|
for (let lpIndex in lpList) {
|
|
for (let lpIndex in lpList) {
|
|
|
const lp = lpList[lpIndex]
|
|
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)
|
|
lpSum2List.push(lp)
|
|
|
|
|
|