Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoch05 committed Jan 18, 2024
1 parent 9c4e5bf commit 620d4d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apollo/src/aggregation/aggregation.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 620d4d9

Please sign in to comment.