Epic fee calculation issue

This commit is contained in:
shunmugam 2019-09-16 12:26:08 +05:30
parent 6e72d0db8f
commit 4663bb25bf

View File

@ -63,7 +63,7 @@ export class BlockchainBlockController {
if (fee == 0) { if (fee == 0) {
return this.epic(0); return this.epic(0);
} else if (fee < 1000) { } else if (fee < 1000) {
return (fee * 1000000) / 1000000000; return fee / 1000000;
} else { } else {
return this.milliEpic(parseFloat(fee) / 1000); return this.milliEpic(parseFloat(fee) / 1000);
} }
@ -73,7 +73,7 @@ export class BlockchainBlockController {
if (fee == 0) { if (fee == 0) {
return this.epic(0); return this.epic(0);
} else if (fee < 1000) { } else if (fee < 1000) {
return (fee * 1000) / 1000000000; return fee / 1000;
} else { } else {
return this.epic(parseFloat(fee) / 1000); return this.epic(parseFloat(fee) / 1000);
} }