Skip to content

Commit

Permalink
remove isFirstSwap
Browse files Browse the repository at this point in the history
  • Loading branch information
aburkut committed Oct 6, 2023
1 parent 54821c0 commit ac6bb88
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
7 changes: 0 additions & 7 deletions src/dex/dexalot/dexalot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,15 +416,8 @@ export class Dexalot extends SimpleExchange implements IDex<DexalotData> {
blockNumber: number,
limitPools?: string[],
transferFees?: TransferFeeParams,
isFirstSwap?: boolean,
): Promise<null | ExchangePrices<DexalotData>> {
try {

// Disable multi/mega routes
if(!isFirstSwap) {
return null;
}

if (await this.isRestricted()) {
return null;
}
Expand Down
1 change: 0 additions & 1 deletion src/implementations/local-paraswap-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ export class LocalParaswapSDK implements IParaSwapSDK {
blockNumber,
[this.dexKey],
poolIdentifiers,
true,
transferFees,
);

Expand Down
2 changes: 0 additions & 2 deletions src/pricing-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ export class PricingHelper {
blockNumber: number,
dexKeys: string[],
limitPoolsMap: { [key: string]: string[] | null } | null,
isFirstSwap: boolean,
transferFees: TransferFeeParams = {
srcFee: 0,
destFee: 0,
Expand Down Expand Up @@ -227,7 +226,6 @@ export class PricingHelper {
blockNumber,
limitPools ? limitPools : undefined,
transferFees,
isFirstSwap,
)
.then(poolPrices => {
try {
Expand Down

0 comments on commit ac6bb88

Please sign in to comment.