Skip to content

Commit

Permalink
fix: pass tokens from the requested chain
Browse files Browse the repository at this point in the history
  • Loading branch information
gmbronco committed Feb 27, 2024
1 parent 892ce8c commit 2e415d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/sor/sorV1Beets/sorV1Beets.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ export class SorV1BeetsService implements SwapService {
private async querySorV1(
input: GetSwapsInput & { swapOptions: GqlSorSwapOptionsInput },
): Promise<GqlSorGetSwapsResponse> {
const tokens = await tokenService.getTokens();
// Explicitly pass chain to getTokens to avoid using the default chain
const tokens = await tokenService.getTokens(undefined, input.chain);
return await this.sorService.getSwaps({ ...input, tokens, swapAmount: formatEther(input.swapAmount.scale18) });
}
}
Expand Down

0 comments on commit 2e415d8

Please sign in to comment.