Skip to content

Commit

Permalink
fix simulate new token
Browse files Browse the repository at this point in the history
  • Loading branch information
haunv3 committed Dec 26, 2024
1 parent 8e1f9e1 commit bf9993b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/universal-swap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oraichain/oraidex-universal-swap",
"version": "1.2.0-beta27",
"version": "1.2.0-beta28",
"main": "build/index.js",
"files": [
"build/"
Expand Down
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 bf9993b

Please sign in to comment.