From 6adfaaac876b4bbcf37150a4710bf7e3a1c9f9cc Mon Sep 17 00:00:00 2001 From: just-a-node Date: Thu, 23 May 2024 17:44:16 -0600 Subject: [PATCH] fix: already filtering by domain and asset --- packages/agents/sdk/src/sdkUtils.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/agents/sdk/src/sdkUtils.ts b/packages/agents/sdk/src/sdkUtils.ts index f40a62c948..a714d6d790 100644 --- a/packages/agents/sdk/src/sdkUtils.ts +++ b/packages/agents/sdk/src/sdkUtils.ts @@ -366,10 +366,8 @@ export class SdkUtils extends SdkShared { let totalLiquidity = BigNumber.from(0); for (let routerBalance of routersByLargestBalance) { - if (routerBalance.domain == domainId && routerBalance.local.toLowerCase() == _asset) { - const balanceBN = BigNumber.from(this.scientificToBigInt(routerBalance.balance.toString())); - totalLiquidity = totalLiquidity.add(balanceBN); - } + const balanceBN = BigNumber.from(this.scientificToBigInt(routerBalance.balance.toString())); + totalLiquidity = totalLiquidity.add(balanceBN); } const totalLiquidityWithBuffer = _minLiquidityBN.mul(BigNumber.from(100 + _bufferPercentage)).div(100);