|
|
@@ -157,15 +157,15 @@ async function saveToken(lpList: any) {
|
|
|
}
|
|
|
|
|
|
async function filterLp(lpList: any) {
|
|
|
- const filteredLpList: any = []
|
|
|
+ const filteredLpList = []
|
|
|
|
|
|
for (let lpIndex in lpList) {
|
|
|
const lp = lpList[lpIndex]
|
|
|
|
|
|
if (lp.token0.toLowerCase() === '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2') {
|
|
|
- if (parseInt(lp.r0) > 20 * 1e18) filteredLpList.push(filteredLpList)
|
|
|
+ if (parseInt(lp.r0) > 20 * 1e18) filteredLpList.push(lp)
|
|
|
} else if (lp.token1.toLowerCase() === '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2') {
|
|
|
- if (parseInt(lp.r1) > 20 * 1e18) filteredLpList.push(filteredLpList)
|
|
|
+ if (parseInt(lp.r1) > 20 * 1e18) filteredLpList.push(lp)
|
|
|
} else {
|
|
|
filteredLpList.push(lp)
|
|
|
}
|