Merge pull request #86 from jagerman/atomic-value-fix

Fix atomic value calculation for stake/transfer
This commit is contained in:
Mikunj Varsani 2019-06-26 08:53:27 +10:00 committed by GitHub
commit 25c550b0f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -752,7 +752,7 @@ export class WalletRPC {
return
}
amount = parseFloat(amount).toFixed(9) * 1e9
amount = (parseFloat(amount) * 1e9).toFixed(0)
this.sendRPC("stake", {
amount,
@ -933,7 +933,7 @@ export class WalletRPC {
return
}
amount = parseFloat(amount).toFixed(9) * 1e9
amount = (parseFloat(amount) * 1e9).toFixed(0)
let sweep_all = amount == this.wallet_state.unlocked_balance