Browse Source

Merge pull request #28 from SuperNETorg/v0.25

spv send validation rounding fix
v0.25
pbca26 7 years ago
committed by GitHub
parent
commit
0b7e092822
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      react/src/components/dashboard/sendCoin/sendCoin.js

4
react/src/components/dashboard/sendCoin/sendCoin.js

@ -551,7 +551,7 @@ class SendCoin extends React.Component {
if (this.props.ActiveCoin.mode === 'spv') {
const _amount = this.state.amount;
const _amountSats = this.state.amount * 100000000;
const _amountSats = Math.floor(this.state.amount * 100000000);
const _balanceSats = this.props.ActiveCoin.balance.balanceSats;
let _fees = mainWindow.spvFees;
_fees.BTC = 0;
@ -685,8 +685,8 @@ class SendCoin extends React.Component {
onSliderChangeTime(value) {
this.setState({
btcFeesSize: _feeLookup[value] === 'advanced' ? this.state.btcFees.electrum[this.state.btcFeesAdvancedStep] : this.state.btcFees.recommended[_feeLookup[value]],
btcFeesTimeBasedStep: value,
btcFeesType: _feeLookup[value] === 'advanced' ? 'advanced' : null,
btcFeesTimeBasedStep: value,
});
}

Loading…
Cancel
Save