Skip to content

Commit

Permalink
moved some constants back to frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
0xChqrles committed May 1, 2024
1 parent abc2587 commit 300bf86
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
3 changes: 0 additions & 3 deletions packages/core/src/constants/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ export enum LiquidityType {
EKUBO_NFT = 'EKUBO_NFT',
}

export const STARKNET_POLLING = 3_000 // 3s
export const STARKNET_MAX_BLOCK_TIME = 3600 * 2 // 2h

export const MIN_STARTING_MCAP = 5_000 // $5k
export const RECOMMENDED_STARTING_MCAP = 10_000 // $12k

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useContractWrite, useWaitForTransaction } from '@starknet-react/core'
import { STARKNET_POLLING } from 'core/constants'
import { useEffect, useMemo, useState } from 'react'
import { useCloseModal, useTransactionModal } from 'src/hooks/useModal'
import { useTransaction } from 'src/hooks/useTransactions'
Expand Down
3 changes: 3 additions & 0 deletions packages/frontend/src/constants/misc.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
export const PERCENTAGE_INPUT_PRECISION = 2

export const FOREVER = 'Forever'

export const STARKNET_POLLING = 3_000 // 3s
export const STARKNET_MAX_BLOCK_TIME = 3600 * 2 // 2h
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import { Fraction } from '@uniswap/sdk-core'
import {
AMM,
LIQUIDITY_LOCK_FOREVER_TIMESTAMP,
MAX_LIQUIDITY_LOCK_PERIOD,
STARKNET_MAX_BLOCK_TIME,
} from 'core/constants'
import { AMM, LIQUIDITY_LOCK_FOREVER_TIMESTAMP, MAX_LIQUIDITY_LOCK_PERIOD } from 'core/constants'
import { useFactory, useQuoteToken, useQuoteTokenPrice } from 'hooks'
import moment from 'moment'
import { useCallback, useMemo } from 'react'
import { useParams } from 'react-router-dom'
import { STARKNET_MAX_BLOCK_TIME } from 'src/constants/misc'
import {
useHodlLimitForm,
useLiquidityForm,
Expand Down

0 comments on commit 300bf86

Please sign in to comment.