Skip to content

Commit

Permalink
Merge branch 'feat/intergrate_common' of https://github.com/oraichain…
Browse files Browse the repository at this point in the history
…/oraidex-sdk into feat/intergrate_common
  • Loading branch information
trungbach committed Dec 27, 2024
2 parents d59d915 + bf9993b commit 489d8f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/universal-swap/src/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ export class UniversalSwapHelper {
}): Promise<SmartRouterResponse> => {
const { amount, fromInfo, toInfo, routerConfig } = query;
// check for universal-swap 2 tokens that have same coingeckoId, should return simulate data with average ratio 1-1.
if (fromInfo.chainId === toInfo.chainId && fromInfo.coinGeckoId === toInfo.coinGeckoId) {
if (fromInfo.chainId === toInfo.chainId && fromInfo.coinGeckoId && fromInfo.coinGeckoId === toInfo.coinGeckoId) {
return {
swapAmount: amount,
returnAmount: amount,
Expand Down

0 comments on commit 489d8f9

Please sign in to comment.