Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async initialOutputState() {
await this.getFeeEstimate();
const {inputsTotalSats, fee, setOutputAmount} = this.props;
const feeSats = bitcoinsToSatoshis(new BigNumber(fee));
const outputAmount = satoshisToBitcoins(inputsTotalSats.minus(feeSats));
setOutputAmount(1, outputAmount.toFixed(8));
}
inputsTotal = () => {
const {inputsTotalSats} = this.props;
return satoshisToBitcoins(inputsTotalSats);
}