Skip to content

Commit

Permalink
bigint err
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoch05 committed Jan 18, 2024
1 parent 620d4d9 commit e20e5d5
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 providerFeeWithAmount = BigInt(amount) * BigInt(1 + record.liquidityFeeRate/100000) + BigInt(record.baseFee);
if (limit < providerFeeWithAmount + BigInt(record.protocolFee) || record.paused) {
const providerFee = BigInt(amount) * BigInt(record.liquidityFeeRate) / BigInt(100000) + BigInt(record.baseFee);
if (limit < BigInt(amount) + providerFee + BigInt(record.protocolFee) || record.paused) {
continue;
}
const point = await this.aggregationService.calculateLnBridgeRelayerPoint(
Expand Down

0 comments on commit e20e5d5

Please sign in to comment.