Skip to content

Commit

Permalink
deps (#614)
Browse files Browse the repository at this point in the history
* chore: deps

* fix: tokenlist

* chore: remove option to incentivize if not available

* chore: terra lp alliance claim msg
  • Loading branch information
nick134-bit authored Jan 28, 2025
1 parent e061d6d commit 266b5b6
Show file tree
Hide file tree
Showing 9 changed files with 2,322 additions and 1,150 deletions.
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

0 comments on commit 266b5b6

Please sign in to comment.