mirror of
https://github.com/oxen-io/oxen-electron-gui-wallet.git
synced 2023-12-14 06:13:02 +01:00
Merge pull request #86 from jagerman/atomic-value-fix
Fix atomic value calculation for stake/transfer
This commit is contained in:
commit
25c550b0f3
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue