Skip to content

Commit

Permalink
chore: update default gas price
Browse files Browse the repository at this point in the history
  • Loading branch information
bangjelkoski committed Nov 7, 2024
1 parent 15055bb commit 2382c5b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/price_pusher/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pnpm run start injective --grpc-endpoint https://grpc-endpoint.com \
--price-config-file "path/to/price-config.beta.sample.yaml" \
--mnemonic-file "path/to/mnemonic.txt" \
--network testnet \
[--gas-price 500000000] \
[--gas-price 160000000] \
[--gas-multiplier 1.1] \
[--pushing-frequency 10] \
[--polling-frequency 5]
Expand Down
2 changes: 1 addition & 1 deletion apps/price_pusher/src/injective/injective.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
import { Logger } from "pino";
import { Account } from "@injectivelabs/sdk-ts/dist/cjs/client/chain/types/auth";

const DEFAULT_GAS_PRICE = 500000000;
const DEFAULT_GAS_PRICE = 160000000;
const DEFAULT_GAS_MULTIPLIER = 1.05
const INJECTIVE_TESTNET_CHAIN_ID = "injective-888"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
} from "@injectivelabs/networks";
import * as net from "net";

const DEFAULT_GAS_PRICE = 500000000;
const DEFAULT_GAS_PRICE = 160000000;

export class InjectiveExecutor implements ChainExecutor {
private readonly gasMultiplier = 2;
Expand Down
6 changes: 3 additions & 3 deletions target_chains/cosmwasm/tools/src/ci/deployer/injective.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ export class InjectiveDeployer implements Deployer {
const txResponse = await this.signAndBroadcastMsg(store_code, {
amount: [
{
// gas = 5000000 & gasPrice = 500000000
amount: String(500000000 * 5000000),
// gas = 5000000 & gasPrice = 160000000
amount: String(160000000 * 5000000),
denom: "inj",
},
],
// DEFAULT STD FEE that we use has gas = 400000 and gasPrice = 500000000
// DEFAULT STD FEE that we use has gas = 400000 and gasPrice = 160000000
// But this transaction was taking gas around 3000000. Which is a lot more
// Keeping the gasPrice same as in default std fee as seen above in amount.
// Changing the gasLimit to 5000000
Expand Down

0 comments on commit 2382c5b

Please sign in to comment.