Skip to content

Commit

Permalink
Merge pull request #278 from skip-mev/staging
Browse files Browse the repository at this point in the history
  • Loading branch information
codingki authored May 29, 2024
2 parents 50165c2 + 2418a7b commit a516ebc
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion chain-registry
Submodule chain-registry updated 68 files
+4 −5 .github/workflows/validate.yml
+20 −0 .github/workflows/validate_versionsjson.yml
+31 −0 _IBC/axelar-pryzm.json
+31 −0 _IBC/noble-planq.json
+31 −0 _IBC/onex-onomy.json
+352 −0 _non-cosmos/solana/assetlist.json
+ _non-cosmos/solana/images/bsol.png
+ _non-cosmos/solana/images/edgesol.png
+ _non-cosmos/solana/images/hsol.png
+ _non-cosmos/solana/images/jitosol.png
+ _non-cosmos/solana/images/jupsol.png
+ _non-cosmos/solana/images/lst.png
+ _non-cosmos/solana/images/msol.png
+ _non-cosmos/solana/images/wif.png
+0 −6 canto/chain.json
+3 −3 celestia/chain.json
+2 −1 chain4energy/assetlist.json
+ chain4energy/images/c4e.png
+28 −0 chihuahua/assetlist.json
+ chihuahua/images/ashhuahua.png
+369 −16 composable/assetlist.json
+0 −6 crescent/chain.json
+0 −6 emoney/chain.json
+157 −0 injective/assetlist.json
+9 −1 injective/chain.json
+ injective/images/natom.png
+ injective/images/ninj.png
+ injective/images/ntia.png
+ injective/images/nusdt.png
+ injective/images/nweth.png
+7 −2 juno/assetlist.json
+23 −1 kyve/chain.json
+30 −1 lava/chain.json
+62 −0 mantrachain/assetlist.json
+ mantrachain/images/OM-Darkmatt.png
+10 −0 mantrachain/images/OM-Darkmatt.svg
+ mantrachain/images/OM-Prim-Col.png
+10 −0 mantrachain/images/OM-Prim-Col.svg
+ mantrachain/images/OM-WHT.png
+4 −0 mantrachain/images/OM-WHT.svg
+53 −1 neutron/assetlist.json
+26 −5 neutron/chain.json
+ neutron/images/NBZ.png
+ neutron/images/takumi.png
+ nibiru/images/nibiru.png
+12 −15 nibiru/images/nibiru.svg
+48 −5 osmosis/assetlist.json
+ osmosis/images/edgesol.pica.png
+ osmosis/images/jitosol.pica.png
+ osmosis/images/lst.pica.png
+ osmosis/images/wsol.pica.png
+31 −4 persistence/chain.json
+0 −6 regen/chain.json
+28 −9 sei/chain.json
+7 −1 shido/chain.json
+83 −1 stargaze/assetlist.json
+68 −2 terra2/assetlist.json
+ terra2/images/gem.png
+32 −0 terra2/images/ura.svg
+31 −0 testnets/_IBC/axelartestnet-mantrachaintestnet.json
+31 −0 testnets/_IBC/coreumtestnet-osmosistestnet.json
+31 −0 testnets/_IBC/mantrachaintestnet-nobletestnet.json
+31 −0 testnets/_IBC/mantrachaintestnet-osmosistestnet.json
+22 −12 testnets/mantrachaintestnet/assetlist.json
+8 −7 testnets/mantrachaintestnet/chain.json
+ testnets/mantrachaintestnet/images/mantra.png
+0 −10 testnets/mantrachaintestnet/images/mantra.svg
+2 −1 versions.schema.json
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.1.1",
"@solana/spl-token": "^0.4.1",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/wallet-adapter-wallets": "^0.19.31",
Expand Down
2 changes: 1 addition & 1 deletion src/components/AssetSelect/AssetSelectContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function AssetSelectContent({ assets = [], balances, onChange, onClose, showChai
const filteredAssets = useMemo(() => {
if (!searchValue) return sortedAssets;
return matchSorter(sortedAssets || [], searchValue, {
keys: ["symbol", "denom"],
keys: ["recommendedSymbol", "symbol", "denom"],
});
}, [searchValue, sortedAssets]);

Expand Down
7 changes: 6 additions & 1 deletion src/components/PreviewRoute/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,12 @@ export const PreviewRoute = ({
await skipClient.executeRoute({
route,
userAddresses,
validateGasBalance: route.txsRequired === 1,
validateGasBalance: true,
getFallbackGasAmount: async (chainID, chainType) => {
if (chainType === "cosmos") {
return Number(useSettingsStore.getState().customGasAmount);
}
},
slippageTolerancePercent: useSettingsStore.getState().slippage,
onTransactionTracked: async (txStatus) => {
const makeExplorerUrl = await getExplorerUrl(txStatus.chainID);
Expand Down
2 changes: 1 addition & 1 deletion src/components/SwapWidget/useSwapWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a516ebc

Please sign in to comment.