From a141490e559dc52b855bb2a61fa2ce18f0229437 Mon Sep 17 00:00:00 2001 From: Arionum Date: Sat, 13 Jan 2018 21:49:51 +0200 Subject: [PATCH] fee bug --- include/transaction.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/transaction.inc.php b/include/transaction.inc.php index 28c3c1c..61340a5 100755 --- a/include/transaction.inc.php +++ b/include/transaction.inc.php @@ -124,6 +124,7 @@ class Transaction { if($x['fee']<0) { _log("$x[id] - Fee below 0"); return false; } $fee=$x['val']*0.0025; + $fee=number_format($fee,8,".",""); if($fee<0.00000001) $fee=0.00000001; if($fee!=$x['fee']) { _log("$x[id] - Fee not 0.25%"); return false; }