Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

fix(studio): Update KyberSwap SDK to latest version #2533

Merged
merged 3 commits into from
Apr 7, 2023
Merged

Conversation

pingu1
Copy link
Contributor

@pingu1 pingu1 commented Apr 6, 2023

Description

The installed version of the KS SDK was out-dated. Installing the latest version helped fetching positions that were missing.

Checklist

  • I have followed the Contributing Guidelines
  • (optional) As a contributor, my Ethereum address/ENS is:
  • (optional) As a contributor, my Twitter handle is:

How to test?

Impersonating 0xca86d57519dbfe34a25eef0923b259ab07986b71

{
   "0xca86d57519dbfe34a25eef0923b259ab07986b71":{
      "products":[
         {
            "label":"Pools",
            "assets":[
               {
                  "type":"contract-position",
                  "address":"0x2b1c7b41f6a8f2b2bc45c3233a5d5fb3cd6dc9a8",
                  "appId":"kyberswap-elastic",
                  "groupId":"liquidity",
                  "network":"avalanche",
                  "tokens":[
                     {
                        "metaType":"supplied",
                        "type":"base-token",
                        "network":"avalanche",
                        "address":"0x6e84a6216ea6dacc71ee8e6b0a5b7322eebc0fdd",
                        "symbol":"JOE",
                        "decimals":18,
                        "price":0.585899,
                        "balance":1804891.906527159,
                        "balanceRaw":"1804891906527159022852460",
                        "balanceUSD":1057484.3631423558
                     },
                     {
                        "metaType":"supplied",
                        "type":"base-token",
                        "network":"avalanche",
                        "address":"0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",
                        "symbol":"WAVAX",
                        "decimals":18,
                        "price":18.12,
                        "balance":48707.58480795936,
                        "balanceRaw":"48707584807959361942161",
                        "balanceUSD":882581.4367202237
                     }
                  ],
                  "dataProps":{
                     "feeTier":0.2,
                     "rangeStart":0.02,
                     "rangeEnd":0.0614,
                     "liquidity":1975361.792904905,
                     "reserves":[
                        1833498.3300320904,
                        49730.51627138153
                     ],
                     "poolAddress":"0x4ded804a5724e1ead4efe3dd2702ec56abe018f7",
                     "assetStandard":"erc721",
                     "positionKey":"0.2"
                  },
                  "displayProps":{
                     "label":"JOE / WAVAX (0.02 to 0.0614)",
                     "images":[
                        "https://storage.googleapis.com/zapper-fi-assets/tokens/avalanche/0x6e84a6216ea6dacc71ee8e6b0a5b7322eebc0fdd.png",
                        "https://storage.googleapis.com/zapper-fi-assets/tokens/avalanche/0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7.png"
                     ],
                     "statsItems":[
                        {
                           "label":"Liquidity",
                           "value":{
                              "type":"dollar",
                              "value":1.2528875169882907e+24
                           }
                        }
                     ]
                  },
                  "balanceUSD":1940065.7998625794
               }
            ],
            "meta":[
               
            ]
         }
      ],
      "meta":[
         {
            "label":"Total",
            "value":1940065.7998625794,
            "type":"dollar"
         },
         {
            "label":"Assets",
            "value":1940065.7998625794,
            "type":"dollar"
         },
         {
            "label":"Debt",
            "value":0,
            "type":"dollar"
         }
      ]
   }
}

matching

image

The installed version of the KS SDK was out-dated. Installing the
latest version helped fetching positions that were missing.
@pingu1 pingu1 requested a review from wpoulin April 6, 2023 19:46
@immasandwich immasandwich merged commit 11354f2 into main Apr 7, 2023
@immasandwich immasandwich deleted the Kyber-elastic branch April 7, 2023 14:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants