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

chore : update deps #582

Merged
merged 2 commits into from
Aug 22, 2024
Merged
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
4 changes: 2 additions & 2 deletions components/AssetInput/AssetList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const AssetList: FC<AssetListProps> = ({
isIncentives = false,
unbondingBalances = null,
}) => {
const [tokenList] = useTokenList()
const [tokenList, setup] = useTokenList()
const { network, chainId } = useRecoilValue(chainState)
const config = useConfig(network, chainId)
const tokens = useMemo(() => {
Expand All @@ -42,7 +42,7 @@ const AssetList: FC<AssetListProps> = ({
let res = isBonding ? config.bonding_tokens : [...(tokenList?.tokensBySymbol?.values() || [])];

return res.length > 0 ? res : [...(tokenList?.tokensBySymbol?.values() || [])].filter((token: any) => !token?.fromRegistry && !token?.withoutPool);
}, [config, isBonding, isIncentives, tokenList]);
}, [config, isBonding, isIncentives, tokenList, setup]);

const [tokenBalance = []] =
unbondingBalances
Expand Down
18 changes: 12 additions & 6 deletions components/Pages/Trade/Pools/components/PoolName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,24 @@ type Props = {

const PoolName = ({ poolId, token1Img, token2Img }: Props) => (
<HStack alignItems="center">
<HStack spacing="-1" width="70px">
<HStack spacing="-1" width="70px"> {/* Abstand auf 2 erhöht */}
<Box
boxShadow="lg"
borderRadius="full"
position="relative"
p="5px"
bg="black"
display="flex"
alignItems="center"
justifyContent="center"
>
<Image
src={token1Img}
width="auto"
minW="1.6rem"
maxW="1.6rem"
maxH="1.6rem"
style={{ margin: 'unset',
borderRadius: '50%' }}
style={{ margin: 'unset', borderRadius: '50%' }}
alt="logo-small"
fallback={
<FallbackImage
Expand All @@ -38,13 +41,16 @@ const PoolName = ({ poolId, token1Img, token2Img }: Props) => (
borderRadius="full"
p="4px"
border="1px solid rgba(255, 255, 255, 0.1)"
display="flex"
alignItems="center"
justifyContent="center"
>
<Image
width="auto"
minW="1.6rem"
maxW="1.6rem"
maxH="1.6rem"
style={{ margin: 'unset' }}
style={{ margin: 'unset', borderRadius: '50%' }}
src={token2Img}
alt="logo-small"
fallback={
Expand All @@ -61,6 +67,6 @@ const PoolName = ({ poolId, token1Img, token2Img }: Props) => (
{poolId}
</Text>
</HStack>
)
);

export default PoolName
export default PoolName;
6 changes: 5 additions & 1 deletion hooks/useTokenList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ export const useTokenList = () => {
if (asset.name === 'Whale Token' && !native && walletChainName === 'terra'){
continue
}
const denom = !native ? asset.address : asset.base
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
}
let tmpAssetOBJ: any = { denom: denom, id: asset.coingecko_id || "", token_address: asset.address || asset.base, chain_id: chainId, symbol: asset.symbol, decimals: exponents.exponent, name: asset.name, logoURI: logoURI, tags: native ? ['native'] : [''], native: native, fromRegistry: true }
const res = Array.from(tokenMapBySymbol.values())
if (denom && !res.find((token) => token.denom === denom)) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@
"@cosmos-kit/station": "^2.7.0",
"@emotion/react": "^11",
"@emotion/styled": "^11",
"@injectivelabs/sdk-ts": "1.14.7",
"@injectivelabs/sdk-ts": "1.14.13",
"@next/bundle-analyzer": "^14.2.3",
"@nick134-bit/nicks-injectivejs": "^0.0.3",
"@tanstack/react-table": "^8.16.0",
"@terra-money/feather.js": "^2.0.4",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"bignumber.js": "^9.1.2",
"chain-registry": "^1.62.3",
"chain-registry": "^1.63.61",
"dayjs": "^1.11.11",
"eslint-plugin-import-helpers": "^1.3.1",
"intercept-stdout": "^0.1.2",
Expand Down
Loading
Loading