Skip to content

Commit

Permalink
🩹 Increase gas multiplier for updating ISCN
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraHuang22 committed Jan 24, 2024
1 parent 8bec8cb commit 550a499
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions constant/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const ISCN_MIN_BALANCE = 0.01;

export const ISCN_GAS_FEE = 200000;
export const ISCN_GAS_MULTIPLIER = 1.5;
export const UPDATE_ISCN_GAS_MULTIPLIER = 1.75;

export const ISCN_REGISTRY_NAME = 'likecoin-chain';

Expand Down
4 changes: 2 additions & 2 deletions utils/cosmos/iscn/sign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import network from '@/constant/network';
import { DeliverTxResponse } from '@cosmjs/stargate';
import { BigNumber } from 'bignumber.js';
import { ISCNRegisterPayload } from './iscn.type';
import { WALLET_TYPE_REPLACER, ISCN_GAS_FEE, DEFAULT_GAS_PRICE, ISCN_GAS_MULTIPLIER } from '~/constant'
import { WALLET_TYPE_REPLACER, ISCN_GAS_FEE, DEFAULT_GAS_PRICE, UPDATE_ISCN_GAS_MULTIPLIER } from '~/constant'
import { getPublisherISCNPayload } from '.';
import { ISCN_PUBLISHERS } from '~/constant/iscn';

Expand Down Expand Up @@ -159,7 +159,7 @@ export async function signISCN(
{
iscnId,
memo,
gas = new BigNumber(ISCN_GAS_FEE).multipliedBy(ISCN_GAS_MULTIPLIER).toFixed(0),
gas = new BigNumber(ISCN_GAS_FEE).multipliedBy(UPDATE_ISCN_GAS_MULTIPLIER).toFixed(0),
}: { iscnId?: string, memo?: string, gas?: string } = {},
) {
const isUpdate = !!iscnId
Expand Down

0 comments on commit 550a499

Please sign in to comment.