diff --git a/webapp/services/BlockChainService.php b/webapp/services/BlockChainService.php index b3a36a33..c465e4c7 100644 --- a/webapp/services/BlockChainService.php +++ b/webapp/services/BlockChainService.php @@ -215,8 +215,8 @@ class BlockChainService { if (strlen($val) <= $decimals) { $floatPart = $val; } else { - $intPart = substr($val, 0, $decimals); - $floatPart = substr($val, $decimals); + $intPart = substr($val, 0, strlen($val) - $decimals); + $floatPart = substr($val, strlen($val) - $decimals); } return true; }