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

RewardsSugar: forRoot helper #92

Merged
merged 1 commit into from
Nov 15, 2024
Merged

RewardsSugar: forRoot helper #92

merged 1 commit into from
Nov 15, 2024

Conversation

stas
Copy link
Collaborator

@stas stas commented Nov 13, 2024

Helps with leaf -> root address translations.

@stas stas changed the base branch from v3 to root_pool November 13, 2024 21:21
Copy link

@airtoonricardo airtoonricardo left a comment

Choose a reason for hiding this comment

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

The new forRoot function looks good to me. It allows us to fetch the Root Gauge, Fees & Bribes contracts necessary for reward claiming.

The Gauge address will then be used on Leaf to fetch the Reward Token addresses required for claims, right?
This would unfortunately require at least an additional RPC call on Leaf, but given that reward token addresses are not stored on Root, this appears to be necessary (at least for the incentive token addresses).

@stas
Copy link
Collaborator Author

stas commented Nov 15, 2024

The Gauge address will then be used on Leaf to fetch the Reward Token addresses required for claims, right?

correct

Overall all concerns inline with the scope of this PR. Ty ty @airtoonricardo

@stas stas merged commit 0fc59ee into root_pool Nov 15, 2024
7 of 8 checks passed
@stas stas deleted the forRoot branch November 15, 2024 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants