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

distributions: LQT pool budget #5026

Merged
merged 3 commits into from
Jan 30, 2025
Merged

Conversation

TalDerei
Copy link
Collaborator

@TalDerei TalDerei commented Jan 30, 2025

Describe your changes

Implements the LQT reward distribution for the total reward pool size for an epoch.

Issue ticket number and link

references #5025

Checklist before requesting a review

  • I have added guiding text to explain how a reviewer should test these changes.

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    adds new logic for computing LQT issuance

@TalDerei TalDerei self-assigned this Jan 30, 2025
@TalDerei TalDerei added the consensus-breaking breaking change to execution of on-chain data label Jan 30, 2025
let lqt_block_reward_rate = self
.get_distributions_params()
.await?
.liquidity_tournament_incentive_per_block as u64;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

why is this chain param defined as u64 again?

Copy link
Member

Choose a reason for hiding this comment

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

I don't know if there's a principled reason for it to be a u64 rather than Amount, but this seems fine.

Copy link
Member

@erwanor erwanor left a comment

Choose a reason for hiding this comment

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

LGTM, this looks right to me

crates/core/component/distributions/src/component.rs Outdated Show resolved Hide resolved
crates/core/component/distributions/src/component.rs Outdated Show resolved Hide resolved
@TalDerei TalDerei merged commit 3b45dc2 into protocol/lqt_branch Jan 30, 2025
13 checks passed
@TalDerei TalDerei deleted the distributions-pool-budget branch January 30, 2025 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consensus-breaking breaking change to execution of on-chain data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants