From c10fd2d7f263ad7772083d5a47475e5df04ab74f Mon Sep 17 00:00:00 2001 From: Charlie Chen <34498985+ws4charlie@users.noreply.github.com> Date: Wed, 11 Oct 2023 16:38:09 -0500 Subject: [PATCH] removed division by 1000 in fee calculation (#1275) Co-authored-by: charliec --- zetaclient/btc_signer.go | 1 - 1 file changed, 1 deletion(-) diff --git a/zetaclient/btc_signer.go b/zetaclient/btc_signer.go index 07cf24df92..853507ce42 100644 --- a/zetaclient/btc_signer.go +++ b/zetaclient/btc_signer.go @@ -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