-
Notifications
You must be signed in to change notification settings - Fork 205
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
Gas payment change for audit issue M02 #885
Conversation
core/state_transition.go
Outdated
if err := st.creditFee(*st.msg.GatewayFeeRecipient(), st.msg.GatewayFee(), st.msg.FeeCurrency()); err != nil { | ||
log.Error("Failed to credit gateway fee", "err", err) | ||
return err | ||
if feeCurrency == nil { |
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.
This section could probably be cleaned up
"coinbaseFeeRecipient", st.evm.Coinbase, "coinbaseFee", tipTxFee, | ||
"comunityFundRecipient", *governanceAddress, "communityFundFee", baseTxFee) | ||
if feeCurrency == nil { | ||
if gatewayFeeRecipient != &common.ZeroAddress { |
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.
Should we refund the gateway fee in this case?
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.
No, since on payFees
we don't debit it if st.msg
doesn't have GatewayFeeRecipient
Description
Tx cost payments with non-gold were changed to minimize the number of emitted events and EVM contract calls.
Tested
The CI in monorepo is currently pointing here.
Other changes
Related issues
Backwards compatibility
Not backwards compatible with old contracts.