Skip to content
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

Apply currency conversion to EffeciveGasTip #316

Open
wants to merge 9 commits into
base: celo11
Choose a base branch
from

Conversation

Kourin1996
Copy link

@Kourin1996 Kourin1996 commented Jan 29, 2025

Closes #297

This PR fixes an issue where some APIs that retrieve EffectiveGasPrice did not consider currency conversion for the block's BaseFee when FeeCurrency was specified in a transaction.

This PR adds EffectiveGasTipInCurrency and EffectiveGasTipInCelo helper methods in transaction to calculate EffectiveGasTip for native currency and fee currency.

@Kourin1996 Kourin1996 self-assigned this Jan 29, 2025
@Kourin1996 Kourin1996 changed the title [WIP] Apply currency conversion to EffeciveGasTip Apply currency conversion to EffeciveGasTip Feb 3, 2025
@Kourin1996 Kourin1996 marked this pull request as ready for review February 3, 2025 14:00
@palango palango requested a review from ezdac February 3, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No base-fee conversion in effective-gas-tip related methods
1 participant