Skip to content

Commit

Permalink
consolidate native denom const
Browse files Browse the repository at this point in the history
  • Loading branch information
yogurtandjam committed Oct 15, 2024
1 parent 161146b commit 43b39a9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/assetUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const SKIP_NATIVE_DENOM_SUFFIX = 'native';
* skip does not, but we add this value in order to be able to send payloads to cosmjs
* @todo We may need to add additional logic here if we 'useAccountBalance' on forms that do not follow this format.
*/
const NATIVE_TOKEN_ADDRESS = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE';
export const NATIVE_TOKEN_ADDRESS = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE';

export const isNativeDenom = (denom: string | undefined): boolean => {
if (!denom) return false;
Expand Down
2 changes: 0 additions & 2 deletions src/lib/skip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ import abacusStateManager from './abacus';
import { isTruthy } from './isTruthy';
import { sleep } from './timeUtils';

export const NATIVE_TOKEN_ADDRESS = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE';

export const STATUS_ERROR_GRACE_PERIOD = 300_000;

type SkipStatusParams = {
Expand Down
3 changes: 1 addition & 2 deletions src/views/forms/AccountManagementForms/DepositForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ import { getTransferInputs } from '@/state/inputsSelectors';
import abacusStateManager from '@/lib/abacus';
import { track } from '@/lib/analytics/analytics';
import { dd } from '@/lib/analytics/datadog';
import { isNativeDenom } from '@/lib/assetUtils';
import { isNativeDenom, NATIVE_TOKEN_ADDRESS } from '@/lib/assetUtils';
import { MustBigNumber } from '@/lib/numbers';
import { NATIVE_TOKEN_ADDRESS } from '@/lib/skip';
import { log } from '@/lib/telemetry';
import { sleep } from '@/lib/timeUtils';
import { parseWalletError } from '@/lib/wallet';
Expand Down

0 comments on commit 43b39a9

Please sign in to comment.