-
Notifications
You must be signed in to change notification settings - Fork 146
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: keeper reward for reservoir drip through token issuance #582
Conversation
7d9d481
to
3054d93
Compare
a9787e8
to
403be94
Compare
e7759d3
to
74030db
Compare
Codecov Report
@@ Coverage Diff @@
## pcv/arb-bridge #582 +/- ##
==================================================
+ Coverage 91.96% 92.14% +0.18%
==================================================
Files 44 44
Lines 2092 2140 +48
Branches 361 373 +12
==================================================
+ Hits 1924 1972 +48
Misses 168 168
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. |
(Fixed the tests, but I still need to add a test for distributing the keeper reward in L2) |
This won't work as it is, because |
72e9109
to
de6abef
Compare
Marking this as ready for review; it matches the latest iteration of what's described in GIP-0034 (The OP Forum post has an outdated version, latest on HackMD) |
de6abef
to
f0a9d2d
Compare
Rebased on top of #624 to incorporate all the audit fixes. This caused lot of merge conflicts that needed to be solved... |
b8d77aa
to
3a6c3b5
Compare
b657902
to
29b8373
Compare
aab220b
to
1b4987b
Compare
Socket Security Report👍 No new dependency issues detected in pull request Socket.dev scan summary
Powered by socket.dev |
…o call drip (needs tests)
1b4987b
to
1a6df5d
Compare
… L2 [H-03] [L-03]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
WIP as I still need to fix the tests.
This complements #571 adding a reward for whoever called drip(), to incentivise calling it and offset the gas costs. The reward is produced through additional token issuance that grows linearly with the number of blocks, after a minimum number of blocks since the last drip have passed.
Note the reward is credited on L1 if the l2RewardsFraction is set to 0. If l2RewardsFraction is nonzero, the reward will be credited in L2, and part of it will be given to the address that initiated the retryable ticket transaction, so that if a lazy or malicious keeper does not redeem the tx in L2, there is incentive for someone else to jump in and redeem it.