Skip to content

Commit

Permalink
bugfix:index baseFee
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoch05 committed Nov 2, 2023
1 parent b88ef89 commit db50418
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apollo/src/lnbridgev20/lnbridgev20.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit db50418

Please sign in to comment.