diff --git a/src/entities/pair.ts b/src/entities/pair.ts index 7d31ddc25..1a8a01cb4 100644 --- a/src/entities/pair.ts +++ b/src/entities/pair.ts @@ -181,7 +181,7 @@ export class Pair { */ public getOutputAmount( inputAmount: CurrencyAmount, - calculateFotFees: boolean = false + calculateFotFees: boolean = true ): [CurrencyAmount, Pair] { invariant(this.involvesToken(inputAmount.currency), 'TOKEN') if (JSBI.equal(this.reserve0.quotient, ZERO) || JSBI.equal(this.reserve1.quotient, ZERO)) { @@ -271,7 +271,7 @@ export class Pair { */ public getInputAmount( outputAmount: CurrencyAmount, - calculateFotFees: boolean = false + calculateFotFees: boolean = true ): [CurrencyAmount, Pair] { invariant(this.involvesToken(outputAmount.currency), 'TOKEN') const percentAfterBuyFees = calculateFotFees ? this.derivePercentAfterBuyFees(outputAmount) : ZERO_PERCENT