Skip to content

Conversation

@jayantk
Copy link
Contributor

@jayantk jayantk commented Jan 10, 2025

This PR adds auto-scaling for the transaction gasLimit parameter when the callback fails. There seems to be an issue on abstract-testnet where some transactions hit this limit for unknown reasons.

I also drive-by fixed an error with the fee calculation.

@vercel
Copy link

vercel bot commented Jan 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 7:46pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 7:46pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 7:46pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
component-library ⬜️ Ignored (Inspect) Visit Preview Jan 10, 2025 7:46pm
insights ⬜️ Ignored (Inspect) Visit Preview Jan 10, 2025 7:46pm

chain_eth_config.gas_limit,
// NOTE: we adjust fees based on the maximum gas that the keeper will submit a callback with.
// This number is *larger* than the configured gas limit, as we pad gas on transaction submission for reliability.
(chain_eth_config.gas_limit * DEFAULT_GAS_ESTIMATE_MULTIPLIER_PCT) / 100,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We were previously multiplying by 5/4 in the function that sends the TX, but we weren't accounting for that when setting the tx fee.

}

fn default_backoff_gas_multiplier_pct() -> u64 {
100
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we may want to set this to some reasonable % in the future, but let's see how the abstract thing goes first.

@jayantk jayantk merged commit f3a8f56 into main Jan 10, 2025
8 checks passed
@jayantk jayantk deleted the fortuna-abstract branch January 10, 2025 21:57
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.

3 participants