From db50418b2116a13344502b4de62d1f2dea315894 Mon Sep 17 00:00:00 2001 From: xiaoch05 Date: Thu, 2 Nov 2023 16:03:08 +0800 Subject: [PATCH] bugfix:index baseFee --- apollo/src/lnbridgev20/lnbridgev20.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apollo/src/lnbridgev20/lnbridgev20.service.ts b/apollo/src/lnbridgev20/lnbridgev20.service.ts index 18c8736e..8b9c72e7 100644 --- a/apollo/src/lnbridgev20/lnbridgev20.service.ts +++ b/apollo/src/lnbridgev20/lnbridgev20.service.ts @@ -594,7 +594,7 @@ export class Lnbridgev20Service implements OnModuleInit { baseFee: BigInt(relayerInfo.baseFee).toString(), liquidityFeeRate: relayerInfo.liquidityFeeRate, }; - updateData.baseFee = (BigInt(record.baseFee) + BigInt(symbol.protocolFee)).toString(); + updateData.baseFee = BigInt(record.baseFee).toString(); updateData.liquidityFeeRate = Number(record.liquidityFeeRate); await this.aggregationService.updateLnv20RelayInfo({ where: { id: id }, @@ -695,7 +695,7 @@ export class Lnbridgev20Service implements OnModuleInit { }; if (record.updateType == RelayUpdateType.PROVIDER_UPDATE) { updateData.margin = record.margin; - updateData.baseFee = (BigInt(record.baseFee) + BigInt(symbol.protocolFee)).toString(); + updateData.baseFee = BigInt(record.baseFee).toString(); updateData.liquidityFeeRate = Number(record.liquidityFeeRate); } else if (record.updateType == RelayUpdateType.WITHDRAW) { updateData.margin = record.margin;