toncenter / ton-indexer

TON Indexer system to store and serve blockchain data using SQL-database
https://toncenter.com/api/v3/
GNU General Public License v3.0
69 stars 33 forks source link

The jetton total supply values from the ton-http-api and ton-indexer are different. #91

Open hsmang opened 1 month ago

hsmang commented 1 month ago

Jetton master address : EQAvlWFDxGF2lXm67y4yzC17wYKD9A0guwPkMs1gOsM__NOT

ton http api v2 response total supply : 102474422538642900000

{
  "ok": true,
  "result": {
    "total_supply": 102474422538642900000,
    "mintable": true,
    "jetton_content": {
      "type": "onchain",
      "data": {
        "uri": "https://cdn.joincommunity.xyz/clicker/not.json",
        "decimals": "9"
      }
    },
    "jetton_wallet_code": "te6cckEBAQEAIwAIQgK6KRjIlH6bJa+awbiDNXdUFz5YEvgHo9bmQqFHCVlTlSN648M=",
    "contract_type": "jetton_master"
  }
}

ton-indexer v3 response total supply : 102701033769173431754

{
      "address": "0:2F956143C461769579BAEF2E32CC2D7BC18283F40D20BB03E432CD603AC33FFC",
      "total_supply": "102701033769173431754",
      "mintable": true,
      "admin_address": "0:10413C964272D399EAD2D0659062B158B4BA201AE5C05BF906E60C3EE74455A4",
      "jetton_content": {
        "decimals": "9",
        "uri": "https://cdn.joincommunity.xyz/clicker/not.json"
      },
      "jetton_wallet_code_hash": "jSjqQht36AX+pSrPM1KWSZ8Drsjp/SHdtfJWSqZcSN4=",
      "code_hash": "+D0FSQr3ycxYAZSIx7JTyUktScJdEtCTg+UugVN+NDo=",
      "data_hash": "RLZNDyJimMhCr13z12r+92Jw1bGfC/GdxvybZgRO0uI=",
      "last_transaction_lt": "47006173000003"
 }

The value on Tonscan matches the ton-http-api v2, but differs from the ton-indexer. Additionally, the admin_address is also different.

What could be causing the discrepancy?