From 620d4d9cf0c9bf29f142d82ef3512e66fb5f7589 Mon Sep 17 00:00:00 2001 From: xiaoch05 Date: Thu, 18 Jan 2024 10:50:52 +0800 Subject: [PATCH] rename --- apollo/src/aggregation/aggregation.resolver.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apollo/src/aggregation/aggregation.resolver.ts b/apollo/src/aggregation/aggregation.resolver.ts index e10825f7..e55e3770 100644 --- a/apollo/src/aggregation/aggregation.resolver.ts +++ b/apollo/src/aggregation/aggregation.resolver.ts @@ -307,8 +307,8 @@ export class AggregationResolver { if (limit > transferLimit) { transferLimit = limit; } - const providerFee = BigInt(amount) * BigInt(1 + record.liquidityFeeRate) + BigInt(record.baseFee); - if (limit < providerFee + BigInt(record.protocolFee) || record.paused) { + const providerFeeWithAmount = BigInt(amount) * BigInt(1 + record.liquidityFeeRate/100000) + BigInt(record.baseFee); + if (limit < providerFeeWithAmount + BigInt(record.protocolFee) || record.paused) { continue; } const point = await this.aggregationService.calculateLnBridgeRelayerPoint(