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

refactor(L1Reservoir): split _drip into smaller functions and rename some variables #705

Closed
wants to merge 3 commits into from

Conversation

pcarranzav
Copy link
Member

@pcarranzav pcarranzav commented Sep 5, 2022

Split the _drip function into smaller pieces, hopefully making it cleaner and easier to understand.

We also rename mintedRewardsActual to lastDripRewardsUntilCurrentBlock, and mintedRewardsTotal to lastDripTotalRewards, hopefully making these closer to what they represent.

@codecov
Copy link

codecov bot commented Sep 5, 2022

Codecov Report

❗ No coverage uploaded for pull request base (pcv/l2-drip-rewards@559ea00). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@                  Coverage Diff                   @@
##             pcv/l2-drip-rewards     #705   +/-   ##
======================================================
  Coverage                       ?   92.40%           
======================================================
  Files                          ?       45           
  Lines                          ?     2160           
  Branches                       ?      375           
======================================================
  Hits                           ?     1996           
  Misses                         ?      164           
  Partials                       ?        0           
Flag Coverage Δ
unittests 92.40% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@pcarranzav pcarranzav changed the title chore: refactor L1Reservoir _drip function refactor(L1Reservoir): split _drip into smaller functions and rename some variables Sep 8, 2022
@pcarranzav pcarranzav marked this pull request as ready for review September 8, 2022 15:19
@pcarranzav pcarranzav force-pushed the pcv/l2-drip-refactor branch 2 times, most recently from 148ac41 to 76b984b Compare September 27, 2022 13:53
@pcarranzav
Copy link
Member Author

CI failed because of #576 - retrying

@pcarranzav
Copy link
Member Author

Closing as GIP-0037 is believed to be the better alternative at this point (see https://forum.thegraph.com/t/gip-0037-the-graph-arbitrum-deployment-with-linear-rewards-minted-in-l2/3551)

@pcarranzav pcarranzav closed this Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants