Skip to content

Conversation

@m30m
Copy link
Contributor

@m30m m30m commented May 20, 2025

Summary

  • Add a new config that disables fee syncs if the chain is already registered.
  • Improve logging:
    • Change retry log levels from ERROR to WARN
    • Add more info on some other logs

Rationale

Whenever we deploy a new version or change some configuration, the setup script is executed and fees are synced to the default value. This is unnecessary and can cause problems for some of the requests made within the duration that the fee is reset (if the users are paying for the fee and the value sent to our contract is the tx value signed by user).

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@vercel
Copy link

vercel bot commented May 20, 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 May 20, 2025 9:51pm
component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2025 9:51pm
entropy-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2025 9:51pm
entropy-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2025 9:51pm
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2025 9:51pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2025 9:51pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2025 9:51pm

fee: 1500000000000000

# Set this temporarily to false if you have changed the fees and want to apply a new baseline fee.
sync_fee_only_on_register: true
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is a brittle config flag -- people will forget to unset it. I think it is better to auto-detect whether or not you need to set the fees differently.

E.g., can we run the same code we run in the keeper to set the fees based on the gas price?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there is some state involved there (we don't update the fees if we are not seeing any new requests). I will add another task to improve it but since nothing bad happens if people forget to unset it, I think this is a good default behaviour.

@m30m m30m merged commit 19e8abb into main May 21, 2025
10 checks passed
@m30m m30m deleted the branch-DA11D379 branch May 21, 2025 15:13
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