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

fee-balancer lambda function #1613

Merged
merged 3 commits into from
Nov 18, 2024

Conversation

eugypalu
Copy link
Contributor

@eugypalu eugypalu commented Nov 18, 2024

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

Resolves #1528

What is the new behavior?

  • Fee Adjustment:
    • It compares the relayers' current total balance with previous balances.
    • If the current balance plus the actual fee is less than the previous balance, the base fee is increased by 12.5%.
    • If the current balance plus the actual fee exceeds the previous balance plus an acceptable earning percentage, the base fee is decreased by 12.5%.
    • If neither condition is met, the base fee remains unchanged.

This change is Reviewable

@ClementWalter ClementWalter merged commit 672d319 into kkrt-labs:main Nov 18, 2024
13 checks passed
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.

fee-balancer lambda function
2 participants