-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fixes + Merge into single checker #2
base: nv/fixes
Are you sure you want to change the base?
Conversation
|
uint256 currentPrinciple = tenderizer.totalStakedTokens(); | ||
uint256 stake; | ||
|
||
if (keccak256(bytes(protocol.name)) == keccak256(bytes("Graph"))) { | ||
if (keccak256(bytes(protocol.name)) == GRAPH) { |
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.
from a code readability point of view, having a function with 2 string params would be the best, is this a better trade-off?
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.
Hmm yea considered this, although with variable names I think the readability is still okay, and save some gas by not having to compute two hashes.
No description provided.