multiversx / mx-api-service

Unified REST API facade for providing data related to the MultiversX blockchain
https://api.multiversx.com
GNU General Public License v3.0
30 stars 48 forks source link

[Bug]: Wrong price for EGLDUSDC xExchange Liquidity Pool #1253

Open hugo-levet opened 3 months ago

hugo-levet commented 3 months ago

Contact Details

hugolevet.pro@gmail.com

Description

Price should be around $2000 but is $1.76

Steps to reproduce

With this curl command:

curl -X 'GET' \
  'https://api.multiversx.com/accounts/erd1fmsn8v577rjhah8rfx867e3l069jw84pgud5h0wjc67348p4fmwsjj5nqj/nfts?collections=EGLDUSDCFL-45109b&excludeMetaESDT=false' \
  -H 'accept: application/json'

On which network is the bug manifesting itself?

Mainnet

Relevant log output

[
  {
    "identifier": "EGLDUSDCFL-45109b-017549",
    "collection": "EGLDUSDCFL-45109b",
    "attributes": "AAAADCMUS+aD0IBoXpUrKwAAAAAAAAOTAAAAAAAAAASXZdZrTuEzsp7w5X7c40mPr2Y/fosnHqFHG0u90sa9Gpw1Tt0=",
    "nonce": 95561,
    "type": "MetaESDT",
    "name": "EGLDUSDCLPStakedLK",
    "creator": "erd1qqqqqqqqqqqqqpgqv0pz5z3fkz54nml6pkzzdruuf020gqzykp2sya7kkv",
    "isWhitelistedStorage": false,
    "balance": "2540033643",
    "decimals": 18,
    "ticker": "EGLDUSDCFL",
    "price": 1.7651955450695025,
    "valueUsd": 4.483656070950259e-9,
    "assets": {
      "website": "https://xExchange.com",
      "description": "This token tracks your LP token stake in the EGLD/USDC farm on the xExchange.",
      "status": "active",
      "pngUrl": "https://media.elrond.com/tokens/asset/EGLDUSDCFL-45109b/logo.png",
      "svgUrl": "https://media.elrond.com/tokens/asset/EGLDUSDCFL-45109b/logo.svg"
    }
  }
]

Code of Conduct