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: claim rewards #552

Merged
merged 20 commits into from
Jan 8, 2025
Merged

feat: claim rewards #552

merged 20 commits into from
Jan 8, 2025

Conversation

guibescos
Copy link
Contributor

@guibescos guibescos commented Jan 7, 2025

Introducing parallelism created a bunch of issues with running the code in debug mode (stack overflow, segfault) so now we need cargo run --release. I haven't been able to solve this.

Copy link

vercel bot commented Jan 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
staking-legacy ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 7, 2025 8:48pm

Comment on lines +1254 to +1266
let publisher_exposure = {
let mut publisher_exposure = 0;
for i in 0..positions.get_position_capacity() {
if let Some(position) = positions.read_position(i).unwrap() {
if (position.target_with_parameters
== TargetWithParameters::IntegrityPool {
publisher: *publisher,
})
{
publisher_exposure += position.amount;
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

this can cause issues if someone unstake but don't claim rewards

Copy link
Contributor Author

Choose a reason for hiding this comment

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

they can't clean up their positions until they claim everything

@guibescos guibescos merged commit 7e5ab90 into main Jan 8, 2025
11 checks passed
@guibescos guibescos deleted the feat/claim-rewards branch January 8, 2025 16:43
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