Skip to content

fix: change pending rewards due to resize to token amounts instead of per token (OZ H-01) #993

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

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

tmigone
Copy link
Member

@tmigone tmigone commented Aug 15, 2024

No description provided.

@tmigone tmigone requested review from Maikol and pcarranzav August 15, 2024 17:29
Copy link

openzeppelin-code bot commented Aug 15, 2024

fix: change pending rewards due to resize to token amounts instead of per token (OZ H-01)

Generated at commit: 7726b5888db40288a6ff3acd49032ed90b276aac

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
4
0
16
41
63
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@tmigone tmigone changed the title fix: change pending rewards due to resize to token amounts instead of per token fix: change pending rewards due to resize to token amounts instead of per token (OZ H-01) Aug 15, 2024
@tmigone tmigone force-pushed the mde/pr991-fix-oz-c-05 branch from d546750 to 0412587 Compare August 20, 2024 20:03
@tmigone tmigone force-pushed the tmigone/horizon-h01-rewards-inflation branch from 530f88e to fd370d0 Compare August 20, 2024 20:03
Copy link

socket-security bot commented Aug 20, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher

View full report↗︎

@tmigone tmigone force-pushed the mde/pr991-fix-oz-c-05 branch from 0412587 to c783118 Compare August 22, 2024 17:58
… per token (OZ-H01)

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
@tmigone tmigone force-pushed the tmigone/horizon-h01-rewards-inflation branch from fd370d0 to 7726b58 Compare August 22, 2024 17:59
@@ -10,13 +10,20 @@ interface IRewardsIssuer {
* @return subgraphDeploymentId Subgraph deployment id for the allocation
* @return tokens Amount of allocated tokens
* @return accRewardsPerAllocatedToken Rewards snapshot
* @return accRewardsPending Tokens pending to be claimed
Copy link
Member

Choose a reason for hiding this comment

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

nit: the description here isn't super clear. Maybe something like "Snapshot of accumulated rewards from previous allocation resizing, pending to be claimed"?

Base automatically changed from mde/pr991-fix-oz-c-05 to horizon September 6, 2024 19:28
@tmigone tmigone merged commit 7726b58 into horizon Sep 6, 2024
3 checks passed
@tmigone tmigone deleted the tmigone/horizon-h01-rewards-inflation branch September 6, 2024 19:32
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.

3 participants