From c2e5a1cf15944a12ca4ed01824a5467079b73bca Mon Sep 17 00:00:00 2001 From: Simon Chow Date: Thu, 21 Mar 2024 16:53:28 -0400 Subject: [PATCH] Fix fee charged calculation --- internal/transform/transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/transform/transaction.go b/internal/transform/transaction.go index 60a1a2b2..9d105bf4 100644 --- a/internal/transform/transaction.go +++ b/internal/transform/transaction.go @@ -170,7 +170,7 @@ func TransformTransaction(transaction ingest.LedgerTransaction, lhe xdr.LedgerHe } // TODO: FeeCharged is calculated incorrectly in protocol 20. Remove when protocol is updated and the bug is fixed - outputFeeCharged = outputFeeCharged - outputResourceFeeRefund + outputFeeCharged = outputResourceFee - outputResourceFeeRefund + outputInclusionFeeCharged } outputCloseTime, err := utils.TimePointToUTCTimeStamp(ledgerHeader.ScpValue.CloseTime)