Skip to content

Commit

Permalink
Fix dynamic fee min bound
Browse files Browse the repository at this point in the history
  • Loading branch information
lok52 committed Nov 17, 2023
1 parent 35110cb commit 8cc91ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zp-relayer/services/fee/FeeManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,9 @@ export abstract class FeeManager<T extends string[] = DynamicFeeKeys> {
const feeOptions = await this._fetchFeeOptions()
const convertedFees = await feeOptions.convert(this.config.priceFeed)
const scaledFees = convertedFees.applyFactor(this.config.scaleFactor)
const boundedFees = scaledFees.applyMinBound()

return scaledFees
return boundedFees
}

async getFeeOptions(useCached = true): Promise<IFeeOptions<T>> {
Expand All @@ -198,7 +199,6 @@ export abstract class FeeManager<T extends string[] = DynamicFeeKeys> {
logger.debug('Fallback to cache fee options')
feeOptions = this.cachedFeeOptions.clone()
}
feeOptions.applyMinBound()
return feeOptions
}

Expand Down

0 comments on commit 8cc91ad

Please sign in to comment.