From 2a9045e9350a6d37c19a8267443bba6adc09e02d Mon Sep 17 00:00:00 2001 From: vinod Date: Mon, 16 Jan 2023 10:44:35 -0500 Subject: [PATCH] fix withdrawal on pools (#150) --- components/Pages/NewPosition/hooks/useProvideLP.ts | 2 -- components/Pages/Pools/Pools.tsx | 5 +++-- public/mainnet/chihuahua-1/pools_list.json | 8 ++++---- public/mainnet/comdex-1/pools_list.json | 4 ++-- public/mainnet/injective-1/pools_list.json | 4 ++-- public/mainnet/juno-1/pools_list.json | 12 ++++++------ public/mainnet/phoenix-1/pools_list.json | 12 ++++++------ 7 files changed, 23 insertions(+), 24 deletions(-) diff --git a/components/Pages/NewPosition/hooks/useProvideLP.ts b/components/Pages/NewPosition/hooks/useProvideLP.ts index fb91df9c..5a010ec9 100644 --- a/components/Pages/NewPosition/hooks/useProvideLP.ts +++ b/components/Pages/NewPosition/hooks/useProvideLP.ts @@ -140,8 +140,6 @@ const useProvideLP = ({ reverse = false }) => { ), } }, [simulated, tokenA, tokenAAmount, tokenB, tokenBAmount, reverse]) - console.log(encodedMsgs) - console.log(msgs) const tx = useTransaction({ poolId, enabled: !!encodedMsgs, diff --git a/components/Pages/Pools/Pools.tsx b/components/Pages/Pools/Pools.tsx index 5445bcae..88765600 100644 --- a/components/Pages/Pools/Pools.tsx +++ b/components/Pages/Pools/Pools.tsx @@ -79,7 +79,8 @@ const Pools: FC = () => { return { contract: pool?.swap_address, - pool: pool?.dispalyName, + pool: pool?.displayName, + poolId: pool?.pool_id, token1Img: pool?.displayLogo1, token2Img: pool?.displayLogo2, apr: showCommingSoon @@ -118,7 +119,7 @@ const Pools: FC = () => { .map((item) => ({ ...item, myPosition: formatPrice(item?.liquidity?.providedTotal?.dollarValue), - cta: () => router.push(`/pools/manage_liquidity?poolId=${item.pool}`), + cta: () => router.push(`/pools/manage_liquidity?poolId=${item.poolId}`), })) // get a list of all pools excepting myPools diff --git a/public/mainnet/chihuahua-1/pools_list.json b/public/mainnet/chihuahua-1/pools_list.json index d20e6cae..6d522d54 100644 --- a/public/mainnet/chihuahua-1/pools_list.json +++ b/public/mainnet/chihuahua-1/pools_list.json @@ -26,7 +26,7 @@ { "pool_id": "HUAHUA-PUPPY", "lpOrder": ["HUAHUA", "PUPPY"], - "dispalyName": "PUPPY-HUAHUA", + "displayName": "PUPPY-HUAHUA", "displayLogo1": "/logos/puppyhuahua_logo.png", "displayLogo2": "/logos/huahua.png", "pool_assets": [ @@ -62,7 +62,7 @@ { "pool_id": "HUAHUA-SHIB", "lpOrder": ["SHIB", "HUAHUA"], - "dispalyName": "SHIB-HUAHUA", + "displayName": "SHIB-HUAHUA", "displayLogo1": "/logos/shiba-inu-shib-logo.png", "displayLogo2": "/logos/huahua.png", "pool_assets": [ @@ -98,7 +98,7 @@ { "pool_id": "HUAHUA-WDOGE", "lpOrder": ["WDOGE", "HUAHUA"], - "dispalyName": "WDOGE-HUAHUA", + "displayName": "WDOGE-HUAHUA", "displayLogo1": "/logos/dogecoin-doge-logo.png", "displayLogo2": "/logos/huahua.png", "pool_assets": [ @@ -134,7 +134,7 @@ { "pool_id": "HUAHUA-rHUAHUA", "lpOrder": ["rHUAHUA", "HUAHUA"], - "dispalyName": "rHUAHUA-HUAHUA", + "displayName": "rHUAHUA-HUAHUA", "displayLogo1": "/logos/huahua.png", "displayLogo2": "/logos/huahua.png", "pool_assets": [ diff --git a/public/mainnet/comdex-1/pools_list.json b/public/mainnet/comdex-1/pools_list.json index 0e004f01..f8da5658 100644 --- a/public/mainnet/comdex-1/pools_list.json +++ b/public/mainnet/comdex-1/pools_list.json @@ -26,7 +26,7 @@ { "pool_id": "CMDX-ATOM", "lpOrder": ["ATOM", "CMDX"], - "dispalyName": "CMDX-ATOM", + "displayName": "CMDX-ATOM", "displayLogo1": "/logos/comdex.png", "displayLogo2": "/logos/atom.png", "pool_assets": [ @@ -63,7 +63,7 @@ { "pool_id": "CMDX-CMST", "lpOrder": ["CMDX", "CMST"], - "dispalyName": "CMDX-CMST", + "displayName": "CMDX-CMST", "displayLogo1": "/logos/comdex.png", "displayLogo2": "/logos/cmst.png", "pool_assets": [ diff --git a/public/mainnet/injective-1/pools_list.json b/public/mainnet/injective-1/pools_list.json index 9f699f6f..21eee31a 100644 --- a/public/mainnet/injective-1/pools_list.json +++ b/public/mainnet/injective-1/pools_list.json @@ -26,7 +26,7 @@ { "pool_id": "INJ-USDT", "lpOrder": ["INJ", "USDT"], - "dispalyName": "INJ-USDT", + "displayName": "INJ-USDT", "displayLogo1": "/logos/injective.png", "displayLogo2": "/logos/usdt.png", "pool_assets": [ @@ -62,7 +62,7 @@ { "pool_id": "ATOM-USDT", "lpOrder": ["ATOM", "USDT"], - "dispalyName": "ATOM-USDT", + "displayName": "ATOM-USDT", "displayLogo1": "/logos/atom.png", "displayLogo2": "/logos/usdt.png", "pool_assets": [ diff --git a/public/mainnet/juno-1/pools_list.json b/public/mainnet/juno-1/pools_list.json index 8205171d..2c29b39a 100644 --- a/public/mainnet/juno-1/pools_list.json +++ b/public/mainnet/juno-1/pools_list.json @@ -26,7 +26,7 @@ { "pool_id": "ATOM-LUNA", "lpOrder": ["LUNA", "ATOM"], - "dispalyName" : "LUNA-ATOM", + "displayName" : "LUNA-ATOM", "displayLogo1" : "/logos/luna.svg", "displayLogo2" : "/logos/atom.png", "pool_assets": [ @@ -62,7 +62,7 @@ { "pool_id": "ATOM-JUNO", "lpOrder": ["ATOM", "JUNO"], - "dispalyName" : "JUNO-ATOM", + "displayName" : "JUNO-ATOM", "displayLogo1" : "/logos/juno.svg", "displayLogo2" : "/logos/atom.png", "pool_assets": [ @@ -99,7 +99,7 @@ { "pool_id": "ATOM-axlUSDC", "lpOrder": ["ATOM", "axlUSDC"], - "dispalyName" : "ATOM-axlUSDC", + "displayName" : "ATOM-axlUSDC", "displayLogo1" : "/logos/atom.png", "displayLogo2" : "/logos/axlUSDC.png", "pool_assets": [ @@ -135,7 +135,7 @@ { "pool_id": "JUNO-RAW", "lpOrder": ["JUNO", "RAW"], - "dispalyName" : "RAW-JUNO", + "displayName" : "RAW-JUNO", "displayLogo1" : "/logos/raw.png", "displayLogo2" : "/logos/juno.svg", "pool_assets": [ @@ -170,7 +170,7 @@ }, { "pool_id": "JUNO-LOOP", - "dispalyName" : "LOOP-JUNO", + "displayName" : "LOOP-JUNO", "displayLogo1" : "/logos/loop.png", "displayLogo2" : "/logos/juno.svg", "pool_assets": [ @@ -206,7 +206,7 @@ { "pool_id": "JUNO-axlUSDC", "lpOrder": ["JUNO", "axlUSDC"], - "dispalyName" : "JUNO-axlUSDC", + "displayName" : "JUNO-axlUSDC", "displayLogo1" : "/logos/juno.svg", "displayLogo2" : "/logos/axlUSDC.png", "pool_assets": [ diff --git a/public/mainnet/phoenix-1/pools_list.json b/public/mainnet/phoenix-1/pools_list.json index 893bdfe9..099716ba 100644 --- a/public/mainnet/phoenix-1/pools_list.json +++ b/public/mainnet/phoenix-1/pools_list.json @@ -33,7 +33,7 @@ "ATOM", "LUNA" ], - "dispalyName": "LUNA-ATOM", + "displayName": "LUNA-ATOM", "displayLogo1": "/logos/luna.svg", "displayLogo2": "/logos/atom.png", "pool_assets": [ @@ -77,7 +77,7 @@ "ATOM", "JUNO" ], - "dispalyName": "JUNO-ATOM", + "displayName": "JUNO-ATOM", "displayLogo1": "/logos/juno.svg", "displayLogo2": "/logos/atom.png", "pool_assets": [ @@ -120,7 +120,7 @@ "ATOM", "axlUSDC" ], - "dispalyName": "ATOM-axlUSDC", + "displayName": "ATOM-axlUSDC", "displayLogo1": "/logos/atom.png", "displayLogo2": "/logos/axlUSDC.png", "pool_assets": [ @@ -159,7 +159,7 @@ }, { "pool_id": "LUNA-LUNAX", - "dispalyName": "LUNAX-LUNA", + "displayName": "LUNAX-LUNA", "displayLogo1": "/logos/lunax.png", "displayLogo2": "/logos/luna.svg", "pool_assets": [ @@ -196,7 +196,7 @@ }, { "pool_id": "LUNA-ASTRO", - "dispalyName": "ASTRO-LUNA", + "displayName": "ASTRO-LUNA", "displayLogo1": "/logos/astro.png", "displayLogo2": "/logos/luna.svg", "pool_assets": [ @@ -237,7 +237,7 @@ "axlUSDC", "LUNA" ], - "dispalyName": "LUNA-axlUSDC", + "displayName": "LUNA-axlUSDC", "displayLogo1": "/logos/luna.svg", "displayLogo2": "/logos/axlUSDC.png", "pool_assets": [