Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
format: clear out comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lucachaco committed Jun 28, 2021
1 parent d9e10e3 commit 7e027e1
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/pages/wallet/transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,6 @@ class Transfer extends Component {
customGasPrice: new BigNumber(0),
customGasLimit: new BigNumber(0),
feeSymbol: null,
feeSliderValue: 0,
customGasPriceSliderValue: 0,
customGasLimitSliderValue: 0,
customBtcFeeSliderValue: 0,
Expand Down Expand Up @@ -382,27 +381,13 @@ class Transfer extends Component {
});
}

// async onConfirmSliderVerified() {
// this.setState({ isConfirm: true });
// await this.confirm();
// }

onCustomFeeSwitchValueChange(value, symbol) {
console.log('Test test');
console.log(this.state);
console.log(this);

/* console.log({ latestBlockMinimumGasPrice });
console.log({ estimatedGasLimit }); */

const { customFee } = this.state;
this.setState({ isCustomFee: value });
if (customFee) {
return;
}
if (value) {
// const feeSliderValue = latestBlockMinimumGasPrice;

if (symbol !== 'BTC') {
const latestBlockMinimumGasPrice = this.latestBlockMinimumGasPrice.toNumber();
const estimatedGasLimit = this.estimatedGasLimit.toNumber();
Expand All @@ -415,7 +400,6 @@ class Transfer extends Component {
} else {
const customBtcFeeSliderValue = this.btcLowEstimatedFee.toNumber();
this.setState({ customBtcFeeSliderValue });
// this.onCustomGasPriceSlideValueChange(customGasPriceSliderValue);
this.onCustomBtcFeeSlideValueChange(customBtcFeeSliderValue);
}
}
Expand Down Expand Up @@ -825,9 +809,6 @@ class Transfer extends Component {
customFee = minCustomFee.plus((maxCustomFee.minus(minCustomFee)).times(value));
customFeeValue = common.getCoinValue(customFee, feeSymbol, type, currency, prices);
} else {
// const { minCustomGasPrice, maxCustomGasPrice, gas } = this;
// this.customGasPrice = minCustomGasPrice.plus((maxCustomGasPrice.minus(minCustomGasPrice)).times(value));
// customFee = common.convertUnitToCoinAmount(feeSymbol, this.customGasPrice.times(gas));
customFeeValue = common.getCoinValue(value, feeSymbol, type, currency, prices);
}
return { customFee, customFeeValue };
Expand Down Expand Up @@ -899,12 +880,9 @@ class Transfer extends Component {

// Update custom fee
if (isCustomFee) {
// const { customFee: newFee, customFeeValue } = this.calcCustomFee(feeSliderValue);
// const { customFee: newFee, customFeeValue } = this.calcCustomFee(feeSliderValue);
const { customFee: newFee } = this.calcCustomFee(customGasPriceSliderValue * customGasLimitSliderValue);

newCustomFee = newFee;
// this.setState({ customFee: newCustomFee, customFeeValue });
this.setState({ customFee: newCustomFee });
}

Expand Down Expand Up @@ -1090,7 +1068,6 @@ class Transfer extends Component {
const {
customBtcFee, customBtcFeeSliderValue,
} = this.state;
// const valueCoin = new BigNumber(this.calculateCoinValue(customGasPrice * customGasLimit));
console.log(customBtcFeeSliderValue);
return (

Expand Down

0 comments on commit 7e027e1

Please sign in to comment.