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

Default FOT calculation to true #155

Merged
merged 1 commit into from
Jan 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading