small fixes

This commit is contained in:
gladcow 2020-04-13 19:07:07 +03:00
parent 11722fed0c
commit 5fae99b814

View file

@ -1454,7 +1454,7 @@ std::string sidechain_net_handler_bitcoin::create_withdrawal_transaction(const s
fc::flat_map<std::string, double> outputs;
outputs[swwo.withdraw_address] = swwo.withdraw_amount.value / 100000000.0;
if ((total_amount - fee_rate) > 0.0) {
outputs[pw_address] = double(total_amount - fee_rate) / 100000000.0;
outputs[pw_address] = double(total_amount - swwo.withdraw_amount.value - fee_rate) / 100000000.0;
}
return create_transaction(inputs, outputs);