kleros-v2 icon indicating copy to clipboard operation
kleros-v2 copied to clipboard

Get PNK page - crosschain swap service integration

Open jaybuidl opened this issue 1 year ago • 0 comments

Currently there is no liquidity for PNK on Arbitrum, thus no route.

Troubleshooting with LIFI

curl -X POST "https://li.quest/v1/advanced/routes" \
  -H 'accept: application/json' \
  -H 'content-type: application/json' \
  --data '
{
  "options": {
    "integrator": "test"
  },
  "allowDestinationCall": true,
  "fromAmount": "10000000000000000000000",
  "fromTokenAddress": "0x93ED3FBe21207Ec2E8f2d3c3de6e058Cb73Bc04d",
  "toTokenAddress": "0x330bD769382cFc6d50175903434CCC8D206DCAE5",
  "toChainId": 42161,
  "fromChainId": 1,
  "fromAddress": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0"
}'
...
   "code": "INSUFFICIENT_LIQUIDITY",
...

Docs

API docs SDK docs and testnet

LIFI uses Debank for prices with Coingecko as fallback.

PNK Mainnet:

  • https://li.quest/v1/token?chain=1&token=0x93ED3FBe21207Ec2E8f2d3c3de6e058Cb73Bc04d
  • https://debank.com/token/eth/0x93ED3FBe21207Ec2E8f2d3c3de6e058Cb73Bc04d/overview

PNK Arbitrum:

  • https://li.quest/v1/token?chain=42161&token=0x330bD769382cFc6d50175903434CCC8D206DCAE5
  • https://debank.com/token/arb/0x330bD769382cFc6d50175903434CCC8D206DCAE5/overview

jaybuidl avatar Feb 19 '24 13:02 jaybuidl