-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update soroban fees #231
Update soroban fees #231
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good, I have a question about fee bump transactions and will approve once answered
if accountEntry.AccountId.Address() == sourceAccountAddress { | ||
accountBalanceEnd = int64(accountEntry.Balance) | ||
} | ||
case xdr.LedgerEntryChangeTypeLedgerEntryState: | ||
accountEntry, ok := change.State.Data.GetAccount() | ||
if !ok { | ||
continue | ||
} | ||
|
||
if accountEntry.AccountId.Address() == sourceAccountAddress { | ||
accountBalanceStart = int64(accountEntry.Balance) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will this logic work with fee bump transactions as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None of the above logic runs for a fee bump transaction. Right now it only looks at V1 transactions which can have sorobanData
Right now the fee for fee bump transactions is saved in max_fee
. Do these fees need some breakdown as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to handle fee bump transactions as well. Although there aren't any in mainnet nor testnet so far
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
inclusion_fee_bid, inclusion_fee_charged, and resource_fee_refund