Skip to content

Commit

Permalink
removed division by 1000 in fee calculation (#1275)
Browse files Browse the repository at this point in the history
Co-authored-by: charliec <[email protected]>
  • Loading branch information
ws4charlie and ws4charlie authored Oct 11, 2023
1 parent 5dd389c commit c10fd2d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion zetaclient/btc_signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ func (signer *BTCSigner) SignWithdrawTx(to *btcutil.AddressWitnessPubKeyHash, am

// fee calculation
fees := new(big.Int).Mul(big.NewInt(int64(txSize)), gasPrice)
fees.Div(fees, big.NewInt(bytesPerKB))
signer.logger.Info().Msgf("bitcoin outTx nonce %d gasPrice %s size %d fees %s", nonce, gasPrice.String(), txSize, fees.String())

// calculate remaining btc to TSS self
Expand Down

0 comments on commit c10fd2d

Please sign in to comment.