Skip to content

Commit

Permalink
fix: update gas price, remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
evilpeach committed Jan 13, 2023
1 parent d74bc78 commit 80378ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 20 deletions.
4 changes: 4 additions & 0 deletions src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ export const CELATONE_FALLBACK_GAS_PRICE: Record<string, ChainGasPrice> = {
gasPrice: "0.025" as U<Token>,
},
terra2: {
denom: "uluna",
gasPrice: "0.015" as U<Token>,
},
terra2testnet: {
denom: "uluna",
gasPrice: "0.15" as U<Token>,
},
Expand Down
6 changes: 3 additions & 3 deletions src/lib/config/terra2testnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export const terra2testnet: Chain = {
{
denom: "uluna",
fixed_min_gas_price: 0,
low_gas_price: 0.015,
average_gas_price: 0.015,
high_gas_price: 0.015,
low_gas_price: 0.15,
average_gas_price: 0.15,
high_gas_price: 0.15,
},
],
},
Expand Down
17 changes: 0 additions & 17 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
/* eslint-disable react/jsx-props-no-spreading */
import type { Chain } from "@chain-registry/types";
import { GasPrice } from "@cosmjs/stargate";
import type { SignerOptions } from "@cosmos-kit/core";
import { wallets } from "@cosmos-kit/keplr";
import { WalletProvider } from "@cosmos-kit/react";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
Expand Down Expand Up @@ -52,19 +49,6 @@ configurePersistable({

const MyApp = ({ Component, pageProps }: AppProps) => {
const queryClient = new QueryClient();
const signerOptions: SignerOptions = {
cosmwasm: (chain: Chain) => {
if (
chain.chain_name === "osmosis" ||
chain.chain_name === "osmosistestnet"
)
return {
gasPrice: GasPrice.fromString("0.0025uosmo"),
};

return undefined;
},
};

return (
<Chakra>
Expand All @@ -73,7 +57,6 @@ const MyApp = ({ Component, pageProps }: AppProps) => {
chains={[...chains, terra2testnet]}
assetLists={[...assets, terra2testnetAssets]}
wallets={wallets}
signerOptions={signerOptions}
endpointOptions={{
terra2testnet: {
rest: ["https://pisco-lcd.terra.dev"],
Expand Down

0 comments on commit 80378ca

Please sign in to comment.