Skip to content

Fee foreign reserve #380

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Fee foreign reserve #380

wants to merge 3 commits into from

Conversation

grarco
Copy link
Contributor

@grarco grarco commented Jun 4, 2025

Based on #379.
Depends on anoma/namada#4644.

Updates the balance of PGF (fee foreign reserve) when a transaction pays the gas fees with a non-native token

@grarco grarco mentioned this pull request Jun 4, 2025
3 tasks
if let Some(block_proposer) =
&self.header.proposer_address_namada
{
balance_changes.push(BalanceChange::new(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A better approach would be to request this balance update only if the gas price of this tx exceeds the minimum price imposed by the protocol. The problem is that we'd need the updated gas costs for this check and this would introduce a dependency between the parameters and the chain microservices

@grarco grarco force-pushed the grarco/fee-foreign-reserve branch from 4baf758 to dd4fa85 Compare June 4, 2025 13:53
@grarco grarco requested a review from sug0 June 4, 2025 14:30
@brentstone
Copy link
Contributor

Remember not to merge this until anoma/namada#4644 is ultimately merged, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants