-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add notify reward script for gnosis, optimism, zkevm sep 2024 #103
Conversation
const pos = Math.floor((currentTime - initTime) / duration); | ||
console.log("pos:", pos); | ||
if (pos < 0) return; | ||
if (distro[pos] === 0) return; |
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.
What is this for?! in purpose?
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.
What is this for?! in purpose?
I just used the last notifyReward script and changed the params and addresses, .. , didn't change the code logic, WDYT should we delete it?
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.
We may have put that condition in place due to some special situation we had with optimism. If the current OP rewarding program ends around the the start of the new program, we don't need that condition.
@mohammadranjbarz Don't forget to set the reward notifier on the zkevm unipool. |
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.
LGTM, thanks @mohammadranjbarz
@aminlatifi FYI @laurenluz |
related to Giveth/giveth-dapps-v2#4434
ZKEVM Mainnet Config https://www.notion.so/giveth/641e512e33124a249177f67ba4762044?v=86ba47af2a9a4927a68cf0a8fcbe5c7d