Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps #614

Merged
merged 7 commits into from
Jan 28, 2025
Merged

deps #614

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/Pages/Trade/Liquidity/hooks/useClaim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const useClaim = (pool: PoolEntityType) => {
msg.push(createExecuteMessage({
message: {
claim_reward: {
native: pool.lp_token,
asset: { native: pool.lp_token},
},
},
senderAddress: address,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const useStakeTransaction = ({
}, [toast, onError])

const { data: fee } = useQuery<unknown, unknown, any | null>(
['fee', debouncedMsgs, txState.error, signingClient],
['fee', debouncedMsgs, txState.error],
async () => {
setTxState((prev) => ({ ...prev,
error: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const useWithdrawTransaction: any = ({
const queryClient = useQueryClient()

const { data: fee } = useQuery<unknown, unknown, any | null>(
['fee', amount, debouncedMsgs, error, signingClient],
['fee', amount, debouncedMsgs, error],
async () => {
setError(null)
setTxStep(TxStep.Estimating)
Expand Down
7 changes: 1 addition & 6 deletions components/Pages/Trade/Pools/ActionCTAs.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import { useMemo } from 'react'

import { Button, HStack } from '@chakra-ui/react'
import { ACTIVE_INCENTIVE_NETWORKS } from 'constants/index'
import { useRouter } from 'next/router'

export const ActionCTAs = ({ chainIdParam, chainId, pool }) => {
const router = useRouter()
const isIncentivized = useMemo(() => ACTIVE_INCENTIVE_NETWORKS.includes(chainId),
[chainId])

const onIncentivizeClick = () => {
router.push({
Expand Down Expand Up @@ -38,7 +33,7 @@ export const ActionCTAs = ({ chainIdParam, chainId, pool }) => {
borderColor="whiteAlpha.700"
size="sm"
onClick={onIncentivizeClick}
isDisabled={!isIncentivized}
isDisabled={!pool?.staking_address}
>
{' '}
Incentivize
Expand Down
6 changes: 1 addition & 5 deletions hooks/useTokenList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ export const useTokenList = () => {
continue
}
const denom = native ? asset.base : asset.address || asset.base
const logoURI = asset.logo_URIs?.svg || asset.logo_URIs?.png || asset.images[0].svg || asset.images[0].png
// HARDCODED FOR NOW
if (asset.name == 'DRUGS' && walletChainName === 'injective') {
exponents.exponent = 18
}
const logoURI = asset.logo_URIs?.svg || asset.logo_URIs?.png || asset.images?.[0]?.svg || asset.images?.[0]?.png || ''
const tmpAssetOBJ: any = { denom,
id: asset.coingecko_id || '',
token_address: asset.address || asset.base,
Expand Down
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
Loading
Loading