Browse Source

修复bug

龚成明 3 năm trước cách đây
mục cha
commit
fe718e80b0
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      scripts/lp/lpMaintenance.ts

+ 1 - 2
scripts/lp/lpMaintenance.ts

@@ -140,8 +140,7 @@ export class LpMaintenance {
 
       // 集中拉取r0,r1并更新本地的
       const size = 2000
-      for (let from = 0; from < topLpList.length; from += size) {
-        logger.debug(`get lp info from ${from} to ${from + size}...`)
+      for (let from = 0; from < allTypeLpList.length; from += size) {
         const lpR0R1Info: any = await v2ToolBy410.methods.getPairSBalance(lpAddressList.slice(from, from + size)).call()
         const r0s = lpR0R1Info.amounts0
         const r1s = lpR0R1Info.amounts1