Skip to content

Commit

Permalink
multiply percent
Browse files Browse the repository at this point in the history
  • Loading branch information
xrsv committed Dec 3, 2024
1 parent 0e7ea93 commit 269b7d0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BigNumber } from '@ethersproject/bignumber';
import { BaseProvider } from '@ethersproject/providers';
import { ChainId, Price } from '@uniswap/sdk-core';
import { ChainId, Percent, Price } from '@uniswap/sdk-core';
import { Pool } from '@uniswap/v3-sdk';
import { CurrencyAmount, log, WRAPPED_NATIVE_CURRENCY } from '../../../util';
import { calculateL1GasFeesHelper } from '../../../util/gas-factory-helpers';
Expand Down Expand Up @@ -213,7 +213,7 @@ export abstract class TickBasedHeuristicGasModelFactory<
gasCostInTermsOfQuoteToken.asFraction
) &&
gasCostInTermsOfQuoteToken.subtract(syntheticGasCostInTermsOfQuoteToken)
.lessThan(gasCostInTermsOfQuoteToken.multiply(0.3).asFraction)
.lessThan(gasCostInTermsOfQuoteToken.multiply(new Percent(30, 100)).asFraction)
))
) {
log.info(
Expand Down

0 comments on commit 269b7d0

Please sign in to comment.