hyperion-history-api icon indicating copy to clipboard operation
hyperion-history-api copied to clipboard

[BUG] Invalid 0 precision token handling /get_tokens

Open Avm07 opened this issue 2 years ago • 4 comments

For 0 precision tokens missing precision field at /get_tokens response data

Example:

curl -X 'GET' \
  'https://hyperion.paycash.online/v2/state/get_tokens?account=i.list' \
  -H 'accept: application/json'

Logical estimate that field will be present:

{
      "symbol": "LQAG",
      "precision": 0,
      "amount": 0,
      "contract": "swap.pcash"
}

Avm07 avatar Nov 23 '22 19:11 Avm07