Skip to content

Commit

Permalink
Merge pull request #2 from SmartCash/refactor(index)
Browse files Browse the repository at this point in the history
add parseInt and remove radix for parseFloat
  • Loading branch information
davidkevork authored Nov 1, 2018
2 parents cf4811a + 4c5d364 commit 7d94a2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ for (var key in templates) {
}

function amount (amount, fee) {
fee = parseFloat(fee, 10) * 100000000
amount = parseFloat(amount, 10) * 100000000
fee = parseInt(parseFloat(fee) * 100000000, 10)
amount = parseInt(parseFloat(amount) * 100000000, 10)
return amount - fee
}

Expand Down

0 comments on commit 7d94a2a

Please sign in to comment.