Skip to content

Conversation

grarco
Copy link
Contributor

@grarco grarco commented Jun 4, 2025

Based on #379.
Depends on namada-net/namada#4644.

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

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 namada-net/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