Skip to content

Commit

Permalink
fix withdrawal on pools (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinodhum authored Jan 16, 2023
1 parent cc8d1db commit 2a9045e
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 24 deletions.
2 changes: 0 additions & 2 deletions components/Pages/NewPosition/hooks/useProvideLP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 3 additions & 2 deletions components/Pages/Pools/Pools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ const Pools: FC<Props> = () => {

return {
contract: pool?.swap_address,
pool: pool?.dispalyName,
pool: pool?.displayName,
poolId: pool?.pool_id,
token1Img: pool?.displayLogo1,
token2Img: pool?.displayLogo2,
apr: showCommingSoon
Expand Down Expand Up @@ -118,7 +119,7 @@ const Pools: FC<Props> = () => {
.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
Expand Down
8 changes: 4 additions & 4 deletions public/mainnet/chihuahua-1/pools_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down
4 changes: 2 additions & 2 deletions public/mainnet/comdex-1/pools_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down
4 changes: 2 additions & 2 deletions public/mainnet/injective-1/pools_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down
12 changes: 6 additions & 6 deletions public/mainnet/juno-1/pools_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -170,7 +170,7 @@
},
{
"pool_id": "JUNO-LOOP",
"dispalyName" : "LOOP-JUNO",
"displayName" : "LOOP-JUNO",
"displayLogo1" : "/logos/loop.png",
"displayLogo2" : "/logos/juno.svg",
"pool_assets": [
Expand Down Expand Up @@ -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": [
Expand Down
12 changes: 6 additions & 6 deletions public/mainnet/phoenix-1/pools_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"ATOM",
"LUNA"
],
"dispalyName": "LUNA-ATOM",
"displayName": "LUNA-ATOM",
"displayLogo1": "/logos/luna.svg",
"displayLogo2": "/logos/atom.png",
"pool_assets": [
Expand Down Expand Up @@ -77,7 +77,7 @@
"ATOM",
"JUNO"
],
"dispalyName": "JUNO-ATOM",
"displayName": "JUNO-ATOM",
"displayLogo1": "/logos/juno.svg",
"displayLogo2": "/logos/atom.png",
"pool_assets": [
Expand Down Expand Up @@ -120,7 +120,7 @@
"ATOM",
"axlUSDC"
],
"dispalyName": "ATOM-axlUSDC",
"displayName": "ATOM-axlUSDC",
"displayLogo1": "/logos/atom.png",
"displayLogo2": "/logos/axlUSDC.png",
"pool_assets": [
Expand Down Expand Up @@ -159,7 +159,7 @@
},
{
"pool_id": "LUNA-LUNAX",
"dispalyName": "LUNAX-LUNA",
"displayName": "LUNAX-LUNA",
"displayLogo1": "/logos/lunax.png",
"displayLogo2": "/logos/luna.svg",
"pool_assets": [
Expand Down Expand Up @@ -196,7 +196,7 @@
},
{
"pool_id": "LUNA-ASTRO",
"dispalyName": "ASTRO-LUNA",
"displayName": "ASTRO-LUNA",
"displayLogo1": "/logos/astro.png",
"displayLogo2": "/logos/luna.svg",
"pool_assets": [
Expand Down Expand Up @@ -237,7 +237,7 @@
"axlUSDC",
"LUNA"
],
"dispalyName": "LUNA-axlUSDC",
"displayName": "LUNA-axlUSDC",
"displayLogo1": "/logos/luna.svg",
"displayLogo2": "/logos/axlUSDC.png",
"pool_assets": [
Expand Down

0 comments on commit 2a9045e

Please sign in to comment.