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

feat(staking): add reward expiry #1915

Merged
merged 1 commit into from
Sep 13, 2024
Merged

feat(staking): add reward expiry #1915

merged 1 commit into from
Sep 13, 2024

Conversation

keyvankhademi
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Sep 13, 2024

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 Sep 13, 2024 4:43pm
staking-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 13, 2024 4:43pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
xc-admin-frontend ⬜️ Ignored (Inspect) Visit Preview Sep 13, 2024 4:43pm

Comment on lines +632 to +637
let lowestEpoch: bigint | undefined;
for (const record of delegationRecords) {
if (lowestEpoch === undefined || record.lastEpoch < lowestEpoch) {
lowestEpoch = record.lastEpoch;
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@guibescos I'm assuming that when there is no stake (i.e reward is zero) the position will get removed after merging positions. Therefore, this will only account for publishers that we have an stake with.

@keyvankhademi keyvankhademi merged commit faf2a1b into main Sep 13, 2024
6 checks passed
@keyvankhademi keyvankhademi deleted the sdk4 branch September 13, 2024 17:36
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.

2 participants