Skip to content

Commit

Permalink
fix: unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
callanbright committed May 13, 2024
1 parent 347fa88 commit 9ed5826
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/dex/swell/swell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,9 @@ export class Swell
if (!this.isEligibleSwap(srcToken, destToken, side)) return [];
if (destToken.address === this.swETHAddress) {
return [this.getPoolIdentifierKeySwETH()];
} else if (destToken.address === this.rswETHAddress) {
} else {
return [this.getPoolIdentifierKeyRswETH()];
}
return [];
}

async getPricesVolume(
Expand All @@ -178,11 +177,9 @@ export class Swell

if (destToken.address === this.swETHAddress) {
return this.pricesVolumeSwETH(amountsIn, blockNumber);
} else if (destToken.address === this.rswETHAddress) {
} else {
return this.pricesVolumeRswETH(amountsIn, blockNumber);
}

return null;
}

private pricesVolumeSwETH(
Expand Down

0 comments on commit 9ed5826

Please sign in to comment.