From 4babeb10e3250e09d6024189c6575a48e6ef78f7 Mon Sep 17 00:00:00 2001 From: Nur Fikri Date: Sat, 25 May 2024 02:21:22 +0700 Subject: [PATCH] chore: bump router sdk --- package-lock.json | 8 ++++---- package.json | 2 +- src/components/SwapWidget/useSwapWidget.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2b410cd4..4a1a3050 100644 --- a/package-lock.json +++ b/package-lock.json @@ -44,7 +44,7 @@ "@radix-ui/react-switch": "^1.0.3", "@radix-ui/react-tooltip": "^1.0.7", "@sentry/nextjs": "^7.99.0", - "@skip-router/core": "4.0.0", + "@skip-router/core": "4.0.1", "@solana/spl-token": "^0.4.1", "@solana/wallet-adapter-react": "^0.15.35", "@solana/wallet-adapter-wallets": "^0.19.31", @@ -13484,9 +13484,9 @@ } }, "node_modules/@skip-router/core": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@skip-router/core/-/core-4.0.0.tgz", - "integrity": "sha512-v2KaYuyKn5hAeDJ5ALYhsUc5nhiJb2ttdqjY2BcIcXzlvjV+wLejlSmTsIEykdOZ32ETLXsfzuL52Du5UZSTZw==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@skip-router/core/-/core-4.0.1.tgz", + "integrity": "sha512-AhXzzT1PpQOZGtub1bZ4lQz6/OOQAJwYct5FglsDKdqI6yH0gDZWkTer+an4KT/4VQo7RhJJNuuMH2xaWV+lPg==", "dependencies": { "@cosmjs/amino": "0.32.3", "@cosmjs/cosmwasm-stargate": "0.32.3", diff --git a/package.json b/package.json index 801b686c..8d0847d4 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "@radix-ui/react-switch": "^1.0.3", "@radix-ui/react-tooltip": "^1.0.7", "@sentry/nextjs": "^7.99.0", - "@skip-router/core": "4.0.0", + "@skip-router/core": "4.0.1", "@solana/spl-token": "^0.4.1", "@solana/wallet-adapter-react": "^0.15.35", "@solana/wallet-adapter-wallets": "^0.19.31", diff --git a/src/components/SwapWidget/useSwapWidget.ts b/src/components/SwapWidget/useSwapWidget.ts index 98f67d93..b435869e 100644 --- a/src/components/SwapWidget/useSwapWidget.ts +++ b/src/components/SwapWidget/useSwapWidget.ts @@ -506,7 +506,7 @@ export function useSwapWidget() { return denom === srcFeeAsset?.denom; }); - if (!feeDenomPrices) { + if (!feeDenomPrices || !feeDenomPrices.gasPrice) { toast.error(`Unable to find gas prices for ${srcFeeAsset.denom} on ${srcChain.chainName}`); return; }