Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
Default FOT calculation to true
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeki committed Jan 26, 2024
1 parent 2f26b23 commit 3ed6f7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entities/pair.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class Pair {
*/
public getOutputAmount(
inputAmount: CurrencyAmount<Token>,
calculateFotFees: boolean = false
calculateFotFees: boolean = true
): [CurrencyAmount<Token>, Pair] {
invariant(this.involvesToken(inputAmount.currency), 'TOKEN')
if (JSBI.equal(this.reserve0.quotient, ZERO) || JSBI.equal(this.reserve1.quotient, ZERO)) {
Expand Down Expand Up @@ -271,7 +271,7 @@ export class Pair {
*/
public getInputAmount(
outputAmount: CurrencyAmount<Token>,
calculateFotFees: boolean = false
calculateFotFees: boolean = true
): [CurrencyAmount<Token>, Pair] {
invariant(this.involvesToken(outputAmount.currency), 'TOKEN')
const percentAfterBuyFees = calculateFotFees ? this.derivePercentAfterBuyFees(outputAmount) : ZERO_PERCENT
Expand Down

0 comments on commit 3ed6f7e

Please sign in to comment.