Skip to content

Commit

Permalink
Merge pull request #234 from stellar/fix-fee-charged
Browse files Browse the repository at this point in the history
Fix fee charged calculation
  • Loading branch information
chowbao authored Mar 21, 2024
2 parents 57becfe + c2e5a1c commit 70448cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/transform/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 70448cd

Please sign in to comment.