Skip to content

Commit

Permalink
TW-1285: Exchange rates: remove extra logic that caused worse estimat…
Browse files Browse the repository at this point in the history
…ions (#141)
  • Loading branch information
keshan3262 authored Jan 31, 2024
1 parent 7ec70ad commit 007cc24
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/utils/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,7 @@ const getSwapsByOneToken = async (outputTokenSymbol: string) => {
throw new Error(`Failed to get swaps for 1 ${outputTokenSymbol}`);
}

const directSwap = await getThreeRouteSwap({
inputTokenSymbol: THREE_ROUTE_TEZ_SYMBOL,
outputTokenSymbol,
realAmount: invertedSwap.output
});

return { directSwap, invertedSwap, updatedAt };
return { directSwap: EMPTY_SWAP, invertedSwap, updatedAt };
};

const getSwaps = async (outputTokenSymbol: string) => {
Expand Down

0 comments on commit 007cc24

Please sign in to comment.