Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

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

@eugypalu eugypalu force-pushed the fee_balancer_lambda branch from 824d49d to 5b47c14 Compare November 18, 2024 00:47
@ClementWalter ClementWalter merged commit 672d319 into kkrt-labs:main Nov 18, 2024
13 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fee-balancer lambda function
2 participants