|
|
@@ -146,10 +146,12 @@ export class LpMaintenance {
|
|
|
|
|
|
const allTypeLpList: any = [].concat(topLpList).concat(lpList).concat(normalLpList).concat(zeroLpList)
|
|
|
const lpAddressList: any = this.generateAddressListByLpList(allTypeLpList)
|
|
|
+ logger.debug(`${lpAddressList.length}`)
|
|
|
|
|
|
// 集中拉取r0,r1并更新本地的
|
|
|
const size = 2000
|
|
|
for (let from = 0; from < allTypeLpList.length; from += size) {
|
|
|
+ logger.debug(`${from}, ${allTypeLpList}`)
|
|
|
const lpR0R1Info: any = await v2ToolBy410.methods.getPairSBalance(lpAddressList.slice(from, from + size)).call()
|
|
|
const r0s = lpR0R1Info.amounts0
|
|
|
const r1s = lpR0R1Info.amounts1
|