Skip to content

Commit

Permalink
update default gas price to 0.001uxion
Browse files Browse the repository at this point in the history
  • Loading branch information
probablyangg committed Nov 22, 2024
1 parent 4f1e335 commit a32fc39
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/demo-app/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const legacyConfig = {

const treasuryConfig = {
treasury: "xion1h82c0efsxxq4pgua754u6xepfu6avglup20fl834gc2ah0ptgn5s2zffe9", // Example XION treasury contract with /cosmwasm.wasm.v1.MsgExecuteContract grant
// gasPrice: "0uxion", // This defaults to "0uxion" on testnet and "0.025uxion" on mainnet. If you feel the need to change the gasPrice when connecting to signer, set this value. Please stick to the string format seen in example
// gasPrice: "0.001uxion", // If you feel the need to change the gasPrice when connecting to signer, set this value. Please stick to the string format seen in example
// Optional params to activate mainnet config
// rpcUrl: "https://rpc.xion-mainnet-1.burnt.com:443",
// restUrl: "https://api.xion-mainnet-1.burnt.com:443",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function AbstraxionContextProvider({
if (rpcUrl.includes("mainnet")) {
gasPriceDefault = GasPrice.fromString(gasPriceConstant);
} else {
gasPriceDefault = GasPrice.fromString("0uxion");
gasPriceDefault = GasPrice.fromString("0.001uxion");
}

const configureInstance = useCallback(() => {
Expand Down
8 changes: 4 additions & 4 deletions packages/constants/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ export const xionCoin: Coin = {
coinMinimalDenom: "uxion",
coinDecimals: 6,
gasPriceStep: {
low: 0.01,
average: 0.025,
high: 0.03,
low: 0.0005,
average: 0.001,
high: 0.01,
},
};

export const xionGasValues = {
gasPrice: "0.025uxion",
gasPrice: "0.001uxion",
gasAdjustment: 1.4,
gasAdjustmentMargin: 5000,
};
Expand Down
2 changes: 1 addition & 1 deletion packages/signers/src/signers/utils/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class AAClient extends SigningCosmWasmClient {
const chainId = await this.getChainId();

if (/testnet/.test(chainId)) {
defaultFee = { amount: [{ amount: "0", denom: "uxion" }], gas: gas };
defaultFee = { amount: [{ amount: "0.001", denom: "uxion" }], gas: gas };
} else {
defaultFee = { amount: calculatedFee.amount, gas: gas };
}
Expand Down

0 comments on commit a32fc39

Please sign in to comment.