-
Notifications
You must be signed in to change notification settings - Fork 0
GIP-4: Decentralized Payout/Slashing #244
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
Conversation
|
This pull request has been linked to Shortcut Story #18728: Verifiers should receive payout in token On-Chain [GIP-4]. |
|
|
||
| // ============ Private Storage ============ | ||
|
|
||
| address private _token; |
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.
State variable _token can be immutable because I don't think there's a case where an owner would change the payout token. What do you think?
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.
ideally, there shouldn't be a case but we might mess something up. We can remove but I think we're good, if the users revolt we can explain that this will be removed once the system is complete
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.
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.
| return _token; | ||
| } | ||
|
|
||
| function setToken(address token) external onlyOwner { |
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.
If _token is updated to be immutable, please remove the setToken function.
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.
@Elvis339 this contract is updatable and we can always remove this function later but for now we don't want to limit our options, what if we mess up some contract and want to change.
https://app.shortcut.com/golden/story/18728/verifiers-should-receive-payout-in-token-on-chain-gip-4