Skip to content

Commit

Permalink
fixed BCHD API token amounts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekliptor committed Sep 28, 2020
1 parent fdd1732 commit 9b63be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BlockchainApi/BchdProtoGatewayApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function getSlpAddressDetails(string $address, string $tokenID): ?SlpToke
$slpAddress->balance += (int)$output->slp_token->amount;
}
if ($slpAddress->decimals > 0)
$slpAddress->balance /= $slpAddress->decimals;
$slpAddress->balance /= pow(10, $slpAddress->decimals);
$slpAddress->transactions = $this->getAddressTransactions($address);

return $slpAddress;
Expand Down

0 comments on commit 9b63be0

Please sign in to comment.